[xsd-users] Serialization of ISO-8859-1 caracters.
Boris Kolpackov
boris at codesynthesis.com
Wed Jun 28 07:10:43 EDT 2006
Hi Raul,
Raul Huertas <raulh39 at tid.es> writes:
> The strange thing is that when I use "unaPeticion->login()" the correct
> content is displayed, but when I serialize the complete class, it keeps
> showing <login> empty.
I tried you example on my Debian box with both Xerces-C++ 2.6.0 and 2.7.0
and in both cases it works as expected. I have a couple of suggestions/
questions for you:
1. Does everything work as expected if you use only ASCII characters?
2. Try to set the locale in your application explicitly. I.e., add
the following to your simple test:
#include <locale.h>
int
main (int argc, char* argv[])
{
setlocale (LC_CTYPE, "ISO-8859-1");
...
}
3. What happens if you try to serialize using UTF-8 instead of ISO-8859-1?
Let us know how it goes.
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060628/7e97886c/attachment.pgp
More information about the xsd-users
mailing list