Hi Andre,

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

> XMLString::transcode("iso-8859-1", (XMLCh *)tempStr, 99);

I have to wonder a bit why you need to cast tempStr, but this probably
isn't significant.

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

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

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"?>

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.

Hope that helps,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to