abeselom
Posts: 4
Nickname: abeselom
Registered: Sep, 2003
|
|
How do I convert a file to a unicode encoding??
|
Posted: Sep 23, 2003 12:38 PM
|
|
Advertisement
|
I am reading an XML file as a ByteArray and I am getting the exception below.
javax.xml.transform.TransformerException: An invalid XML character (Unicode: 0xfa) was found in the element content of the document.
I tried converting the xml file I am reading to unicode as below, but that didn't work.
new String (byteArray, "UTF8").getBytes();
This is part of the xml file generating the exception and I am not sure where this character ö is coming from.
<BILLTEXT id="3"><FONT id="1E">Helvetica,bold,08,italic</FONT><DBTEXT>SöDBTEXT>< /BILLTEXT>
I really appreciate your help.
Thanks!!!!!!!!!! Abeslom
|
|