Thx,
Winston
An XML parser has to recogize UTF-8 and UTF-16, other encodings have to
be specified in the XML declaration
Steps to recreate my problem:
- I have a XML-file with some unknown encoding (i guess it's ANSI)
- After loading, MSXML apparently uses UTF-8 for internal handling
- I add node-text to the DOM with some special characters (e.g. german
umlauts)
- MSXML doesn't moan because the special characters fit into UTF-8
- I save the file using the save-method. MSXML saves the file in it's
original encoding (that means apparently in ANSI) and not in UTF-8
- As a result I have a XML-file with special characters in it that don't fit
into the encoding of the file.
- When I open the XML with the Internet Explorer I get a parsing error due
to the invalid characters :-(
Unfortunately I can't simply add an encoding to the prologue because the XML
is dynamically delivered by a third party.
Is there a way to solve my problem?
Winston
"Martin Honnen" <Martin...@t-online.de> wrote in message
news:3DE76E50...@t-online.de...