David,
See if this FAQ http://xml.apache.org/xerces-c/faq-parse.html#faq-24 helps.
Tinny
----- Original Message -----
From: "david c." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 2:44 AM
Subject: XMLString::transcode & local code pages & c++ locale ... please
help!
Hi !
just a short info about the system we use : xerces 2.1.0 on solaris
(SunOs sun4u sparc SUNW,Sun-Fire-280R)
I got a XMLString::transcode problem ! i wrote a standalone c++
programm which uses XMLString::transcode to convert german iso88591
letters like ��� \xe4\xf6\xfc to XMLCh* and back without a problem .
If i put same code in the constructor of a tuxedo service everythings
behaves the same , but when i put that code into the service method it
does not work !
XMLString::transcode seems to produce ascii 7 bit instead of XMLCh* !?
an "\xe4" will produce an "\x64" ?? (first bit seems to miss?)
I read about that the local code page has influence on the transcode
method ? i tried to set environment variables LC_ALL and LANG but those
didn't
have influence on the transcode ! Maybe my try to switch the code page
did not work, because i did:
std::locale l;
std::cout << "locale set to:" << l.name() << std::endl;
and that allways produces "C" !?
I tried to set the locale in the program, but locale("de_DE"); results
in an exception (locale error?)!
Please can someone explain what has effect to the transcode method ? It
looks like something outside xerces can change the behaviour of the
transcode ?!
How-to change the local code page ?
Thanks in advance for any help/explanations !
David C.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]