>>> Because I did not got an answer on via the post in the user list, I
repost this in the dev list <<<
Hi all,
With Castor 1.0M1 and Java 1.4.2 I have the following problem with
special characters. (Both with Blackdown Java(TM) 2 SDK, Standard
Edition, Ubuntu Breezy Badger package AND j2sdk from sun for Linux.)
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]
-------------------------------------------------