Did we have the resolution to this problem? If yes can anyone point me to the solution.
Saurabh -----Original Message----- From: Pander [mailto:[EMAIL PROTECTED] Sent: Monday, January 02, 2006 7:41 PM To: [email protected] Subject: [castor-user] How to enabling special characters Hi all, With Castor 1.0M1 and Java 1.4.2 I have the following problem with special characters. An XML file holds special characters as · (centered dot) and ô (o with a ^ above it). The XML file has been created with vi but when I cat it to my terminal these special characters look like empty squares. When I unmarshal the XML file and write the string to a file, these special characters are all black diamonds with a white question mark inside (both when opening with vi or catting to my terminal). I have tested the XML file with: <?xml version="1.0" encoding="Latin1"?> and <?xml version="1.0" encoding="UTF-8"?> Both give the same result as described above. However validating the XML with org.apache.xerces.parsers.DOMParser results in an error for the UTF-8 case: [Fatal Error] test.xml:8:47: Invalid byte 2 of 4-byte UTF-8 sequence. Exception caught in main: org.xml.sax.SAXParseException: Invalid byte 2 of 4-byte UTF-8 sequence. How can I fix this so I can use these special characters? Thanks, Pander ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

