[xsd-users] XML encoding
Yianis Nikolaou
yianisn at gmail.com
Fri Mar 2 09:18:28 EST 2007
thanks again!
On 3/2/07, Boris Kolpackov <boris at codesynthesis.com> wrote:
>
> Hi Yianis,
>
> Yianis Nikolaou <yianisn at gmail.com> writes:
>
> > I guess the standard Xerces library that I downloaded along with XSD
> does
> > not suport iso-8859-7 since I get an empty file when I call
> >
> > project (ofs, p, map, "ISO8859-7");
>
> Not an exception?
No I don't get an exception, just an empty XML file.
> When I run xsd with the default char size I get an exception
> > invalid_utf8_string from string.ixx when I use Greek characters in
> string
> > fields.
>
> Right, since char is expected to contain UTF-8.
>
>
> > Questions:
> > Q1: If Xerces recognized the iso8859-7 and I used wchars, then would I
> get
> > the correct output in iso8859-7 and not Unicode?
>
> Yes you should be able to.
>
> > Q2: If I compile XSD with XSD_USE_LCP defined, would I be able to enter
> > Greek characters in standard char mode without getting the exception
> > invalid_utf8_string?
>
> Yes, if you compiled the generated code with XSD_USE_LCP and your
> system code page is iso8859-7 (or equivalent Windows name) then you
> should be able to pass Greek characters in char. You may also be
> able to save it as iso8859-7 (or Windows name) using Xerces-C++
> you have (which uses Win32 API for character encoding).
>
>
> hth,
> -boris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
>
> iQGVAwUBRegq6MiAKQuuCE8dAQJuNQv+LYLjv4LiwMnpejZ8DthOY67VBy4u2LTM
> cPo1jGAGRtcH3q4WMrV+gfje+2yFkXB40Y/6hV83mEW1xJw2nxTC5OJRUzc2m3Cb
> /GLJHBpeO4Q5GEHgbZflfltlIvoXqpyoV/0OpzZzHo1yjeqvmSENVqRMvE7gjIo5
> CdTnSAwJuDBviLpQVWrwmNk9eRLxEWlvS4FJeLjSPHtQi/FR+/corvwSHLva+z4U
> j2mavcbuNJ5OtmMyNYHmgpXd4oYJZp166prQtRJsYgwMAXcIQh1DHfrzzx1EETQt
> H89TlvCtABRFmtyVr7GVOvP72MyFLd6jl8YVacHPYrrZydl79Bv2hXduRUYa+806
> PHJ90MjgQc9HMoLIXCC+wujFv5FmZl8hcfb+Cc5RNx7m0ZGZUQYYzNVluqbwesRJ
> XgnwMu+OXFNxPd4JJvPIjDJ4wpr81H7SBaaPJcPDqfu8O7K7ba64VVHWmUtP+J9v
> e7gMJM832BSdWgkQR6Te3Jf6uocq3BU/
> =XUQD
> -----END PGP SIGNATURE-----
>
>
More information about the xsd-users
mailing list