Problem with special chars in page body content using Java API (Confluence 6.2.3)

In my plugin I read the body of one page and copy expected data to another page. Some chars are not loaded correctly.
Chars:
ě č ř ý á í é ´ ú ů § ¨
are loaded like:
? ? ? ý á í é ´ ú ? § ¨

I load the body of page with:
page.getBodyContent().getBody();

Is any way how to load these chars correctly?

Dear Martin,

the characters are correct considering that you get XHTML (Confluence storage format) back from your call. Special characters are escaped. You have to unesacape the HTML string - there are plenty of libraries which contain such functions (e.g. Apache Commons StringEscapeUtils).

I hope that helps.

Andreas

Thanks, it help.

Martin