xml encoding question

Discussion in 'XML' started by Matt, Nov 2, 2004.

  1. Matt

    Matt Guest

    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!!
    Matt, Nov 2, 2004
    #1
    1. Advertising

  2. Matt wrote:
    > 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.

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Nov 2, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    18,841
    Jon Skeet [C# MVP]
    Jun 9, 2004
  2. Replies:
    1
    Views:
    23,351
    Real Gagnon
    Oct 8, 2004
  3. Replies:
    1
    Views:
    436
    Michael Berg
    Apr 22, 2005
  4. Iain
    Replies:
    2
    Views:
    675
  5. Replies:
    2
    Views:
    367
Loading...

Share This Page