Hi,

I have an xml document with the following line:

<title><![CDATA[HOME & DÉCOR]]></title>

this xml document fails in IE7 and IE8 reporting invalid charcter at the E acute. However, FF3 is able to display it correctly.

Some online sources suggest that IE is correct in identifying the invalid character.

Can anyone confirm whether this behavior is XML standard? What are the invalid characters for XML?

Ok, I know what is wrong now,

The reason is because XML defaults to UTF-8 encoding when the encoding is not specified. This requires that the original xml file be written and saved as UTF-8 format, otherwise, the IE parser will report it as invalid character. If the XML file is encoded in another format, then it must be specified in the XML declaration.

But I have another question. my error XML file was written in Notepad++ and the encoding was in ANSI. But, the parser doesn't seem like allow "ANSI" as encoding. So which of the ISO-88xx-x encoding does "ANSI" correspond to?

Ok, I know what is wrong now,

The reason is because XML defaults to UTF-8 encoding when the encoding is not specified. This requires that the original xml file be written and saved as UTF-8 format, otherwise, the IE parser will report it as invalid character. If the XML file is encoded in another format, then it must be specified in the XML declaration.

But I have another question. my error XML file was written in Notepad++ and the encoding was in ANSI. But, the parser doesn't seem like allow "ANSI" as encoding. So which of the ISO-88xx-x encoding does "ANSI" correspond to?

look here
http://documentation.softwareag.com/crossvision/ins441/xprog/xphttpen.htm

This article has been dead for over six months. Start a new discussion instead.