Java source escaping

Dridi Boukelmoune <[email protected]> Mon, 28 Jan 2013 14:57:43 +0100
Newsgroups gmane.text.xml.xmlbeans.user
Message-ID <CABtDKm5UoobSAR7_tNEqoM5doEPOgPrCqV=p9Hz+sG4KQ2QqoQ@mail.gmail.com>
Dear XmlBeans community,

I'm having trouble building a project on Linux because of the classes
generated by XmlBeans. The build works properly on a Solaris platform
using the same tools:

Java : Hotspot 1.5.0_16
Ant : 1.6.5
XmlBeans: 2.3.1.0

For the XmlBeans version, it comes with Weblogic 10.0:
com.bea.core.xml.beaxmlbeans_2.3.1.0.jar
com.bea.core.xquery.xmlbeans-interop_1.0.0.0.jar
com.bea.core.xquery.beaxmlbeans-interop_1.0.0.0.jar
com.bea.core.xml.xmlbeans_2.3.1.0.jar

I hope my problem is not related to Weblogic's version.

So I have an XSD file containing something like:
<simpleType name=3D"MyType">
        <restriction base=3D"string">
                <enumeration value=3D"A clich=C3=A9"></enumeration>
                ...
        </restriction>
</simpleType>

With Linux, I get this output:
static final Enum A_CLICH=C3=89 =3D Enum.forString("A clich=C3=A9");

On the other hand, it produces this on Solaris:
static final Enum A_CLICH\311 =3D Enum.forString("A clich\351");

The java source code generated on Linux doesn't compile because of an
encoding mess I can't address now, so I'm currently trying to
understand how the code is generated. I haven't found yet which option
leads to either one or the other output that could have different
defaults based on the platform.

I hope someone can help me on this one.

Best Regards,
Dridi