xml encoding question

M

Matt

It has no error if I use <?xml version="1.0" encoding="utf-8" ?> in XML
declaration. But if I use <?xml version="1.0" encoding="ISO-8859-1"?>
It will produce error:

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and
then click the Refresh button, or try again later.

Switch from current encoding to specified encoding not supported.
Error processing resource 'file:///C:/xml/quotes.xml'. Line 1, Position 44

<?xml version="1.0" encoding="ISO-8859-1"?>

any ideas??
please help. thanks!!
 
M

Martin Honnen

Matt said:
It has no error if I use <?xml version="1.0" encoding="utf-8" ?> in XML
declaration. But if I use <?xml version="1.0" encoding="ISO-8859-1"?>
It will produce error:

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and
then click the Refresh button, or try again later.

Switch from current encoding to specified encoding not supported.
Error processing resource 'file:///C:/xml/quotes.xml'. Line 1, Position 44

<?xml version="1.0" encoding="ISO-8859-1"?>

How are you trying to view the XML document? Which software gives the
above error messages?

And of course, what is the encoding your editor saves the XML with?

Be aware that XML parsers need only to support UTF-8 and UTF-16 so there
is no need for some software to implement ISO-8859-1 to call itself an
XML parser.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top