Neil Graham wrote:

Hi Andre,

Sorry, but it is Andrei

XMLPlatformUtils::Initialize("iso8859-1");
XMLPlatformUtils::Initialize("iso-8859-1");
XMLPlatformUtils::Initialize("ISO-8859-1");
XMLPlatformUtils::Initialize("fr_FR");



The first parameter to Initialize represents the Locale (i.e., language) in which parser error messages should be given. So (a) this will have no effect on parsing and (b) since the only messages are in English at the moment, there won't be any other effect either. That said, if there were French messages only this last invocation would actually have worked.

I tried:

XMLPlatformUtils::Initialize("fr_FR");

and

XMLPlatformUtils::Initialize("fr_FR.ISO-8859-1");

as that is indicated in a post of this list but the result is the same one.
Curiously, when I use Xerces DOMParser for parse a XML file, I can save it or print it with DOMWriter, the accentuated characters are quite present but if I reach the nodes, I don't have any more accents.


(...)


doc->setEncoding((const XMLCh*)tempStr);


What do you do with the doc after this--do you serialize it using a
DOMWriter?

Yes.

It would also be useful to know what you're XML document looks like; does
it have an XML declaration that looks like

<?xml version="1.0" encoding="iso-8859-1"?>

Yes. Original document have it thus "copy"


If it doesn't, then this is likely the root of your pboblem--the document will be treated as if it were UTF-8 otherwise.

I translated my XML documents to UTF-8, to UTF-16 or to windows-... from iso-8859-1, I rempaced iso-8859-1 from code source by UTF-... and I re-tried but I don't have the accentuated letters.

Hope that helps,

Thank you

--
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]



Reply via email to