Hi, Like many people, I have a problem with Xerces-c and iso-8859-1 encoding of XML files. When I parse (I tries XercesDOMParser and DOMBuilder) a XML file containing the (french) accentuated characters, the content of the associated XML node is empty ... When I create a XML text node with accentuated letters, the text content of this node is ... the name of node ...
I read the faq, programming guides, ... I searched on the Web (www.google.com, http://marc.theaimsgroup.com/?l=xerces-c-dev, ...) I tries following code:
XMLPlatformUtils::Initialize("iso8859-1"); XMLPlatformUtils::Initialize("iso-8859-1"); XMLPlatformUtils::Initialize("ISO-8859-1"); XMLPlatformUtils::Initialize("fr_FR"); XMLPlatformUtils::Initialize("fr_FR.ISO-8859-1"); ... XMLString::transcode("iso-8859-1", (XMLCh *)tempStr, 99); // or XMLString::transcode("ISO-8859-1", (XMLCh *)tempStr, 99); // or XMLString::transcode("iso8859-1", (XMLCh *)tempStr, 99); // ... doc->setEncoding((const XMLCh*)tempStr); ...
However, the result is the same. My questions: - how to set the encoding for the parser/document? - where I can find an example of code (clearly and functional!)?
Thank you for your answers.
-- Andreļ V. FOMITCHEV [Quand faut-il arrźter l'informatique] Software R&D Engineer [Lorsque, dans un kilo, on trouve 1024 grammes] Odixion, FRANCE
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]