You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Andreï V. FOMITCHEV" <af...@odixion.com> on 2003/03/25 15:03:07 UTC

Problem with accentuated letters

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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org