Hi,
This is my marshal code:
        String encoding = "UTF-8";
        Marshaller m = new Marshaller(new OutputStreamWriter(out,encoding));
        m.setEncoding(encoding);
        m.setMapping(mapping);
        m.marshal(obj);

However string "Café" in obj would become "Caf?" in the final XMl file on
some linux OS(works fine in some other linux OS).
Note: The "out" here is actually "ByteArrayOutputStream" and the debugger
shows the char is broken here before actaully written to a disk file.
I am not sure if this is Castor or JVM or OS issue?

Your help is greatly appreciated!

Platform where the problem persists:
Castor: 0.9.6
JDK: 1.5.0_08-b03
OS: 2.6.9-34.0.1.ELsmp #1 SMP Wed May 17 17:05:24 EDT 2006 i686 athlon i386
GNU/Linux

-Herbert

Reply via email to