Connecting Tech Pros Worldwide Forums | Help | Site Map

xml encoding question

Matt
Guest
 
Posts: n/a
#1: Jul 20 '05
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!!

Martin Honnen
Guest
 
Posts: n/a
#2: Jul 20 '05

re: xml encoding question




Matt wrote:[color=blue]
> 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"?>[/color]

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.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Closed Thread


Similar .NET Framework bytes