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?

mozilla browser eg firefox sarfari netscape knows
many sign eg É

for IE in xsl set

<xsl:output method="xml" indent="yes" encoding="utf-16"/>

no working with cdata
use &# ;
http://www.ascii.cl/htmlcodes.htm
Helmut Hagemann

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

ANSI is a proper subset of any of the 8851 encodings

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.