[xsd-users] Serialization issue with Latin characters
Boris Kolpackov
boris at codesynthesis.com
Thu Sep 1 10:25:16 EDT 2011
Hi Justin,
Justin Jose <justinjose12002 at gmail.com> writes:
> I am able to serialize xml for normall english characeters but getting
> exception while using the value "Union pour le financement d'Immeubles de
> Sociétés"
This is because by default XSD assumes that the object model text is
encoded in UTF-8. 'ét' in Sociétés is not a valid UTF-8 character
sequence.
The easiest way to resolve this is probably to switch to the ISO8859-1
(aka Latin1) encoding using the --char-encoding XSD compiler option:
--char-encoding iso8859-1
See the XSD compiler command line manual (man pages) for details:
http://www.codesynthesis.com/projects/xsd/documentation/xsd.xhtml
Boris
More information about the xsd-users
mailing list