Philippe H�troy schrieb:
> Hello,
>
> I am currently trying to extract an attribute's string of an XML node
> with the following code.
> std::string value =
> XMLString::transcode(node->getAttributes()->getNamedItem(XMLString::tr
>anscode("mapstyle"))->getNodeValue());
>
> Whatever the encoding format is in the XML file header, I retreive
> empty strings when the value includes french accents such as :
> "���..."
>
> Is their anything to do? I already tried setting my LC_ALL variable to
> several values without any results.
Hi Phillippe,
if you're going with the ICONV transcoder, you might want to try
setlocale(LC_CTYPE, "");
at the beginning of your program (and set LC_ALL before to a reasonable
value, man 3 setlocale).
BTW: if you can install icu-devel, you can use the ICU transcoder, which
performs better.
Hope it helps,
Axel
--
Humboldt-Universit�t zu Berlin
Institut f�r Informatik
Signalverarbeitung und Mustererkennung
Dipl.-Inf. Axel Wei�
Rudower Chaussee 25
12489 Berlin-Adlershof
+49-30-2093-3050
** www.freesp.de **
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]