Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem viewing XML in IE5.5 1

Status
Not open for further replies.

wolfie78uk

Programmer
Jul 3, 2002
35
GB
Hi,

I am experiencing a problem when opening an XML file in IE5.5. I cannot include the exact file for confidentiality reasons but I have included one that replicates the error :

<?xml version="1.0" encoding="UTF-8" ?>
<simon annoyed="true" frustrated="very">
Stupid pound sign : £
</simon>

Now, I and another colleague can view this file perfectly but two other colleagues using the same browsers cannot. They get the error :

"An invalid character was found in text content. Error processing resource 'file:///C:/My Documents/My Received Files/Simon.xml'. Line 3, Position 25"

However, when the encoding is changed to iso-8859-1 in the XML file they can view it without any problems. Unfortunately, changing the encoding is not an option as this is part of a huge system that relies on having consistent UTF-8 encoding throughout.

It is most odd and I would appreciate any help that you could provide. A search on Google and Google Groups did not turn up much.

Thanks in advance,

Simon
 
Problem solved and this is interesting!!

The top line read

<?xml version="1.0" encoding="UTF-8" ?>

but when you change it to

<?xml version="1.0" encoding="utf-8" ?>

it is accepted by everybody's browsers.

Spooky!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top