Hi, I solved myself, maybe its helpful for some others.
String data=new String(((String) document.getContent()).getBytes(), "UTF8"); u have to create a string object by an encoding. mfg stefan > Im getting Files from my Xindice by the JavaAPI with > "..(String)document.getContent().." > > But there is a problem, this string is an utf8 string, cause > xindice handles > data as utf8. > So there are many strange characters for special characters. a ä for > example is 3 character long. > > How can i convert this characters to the unicode format which is used in > java? i did not found an utf8decode() function like i used in php.... > > any suggestions > mfg stefan >
