FIX: us-ASCII and ASCII Encoding Are Not Supported in MSXML 2.0 (262630)



The information in this article applies to:

  • Microsoft XML 2.0

This article was previously published under Q262630

SYMPTOMS

The us-ASCII and ASCII encoding formats are not supported in MSXML 2.0. If you attempt to specify the encoding format for an XML document as us-ASCII or ASCII in the MSXML 2.0 parser, the following error message is generated:
System does not support the specified encoding.

RESOLUTION

This has been fixed in the MSXML 2.5 parser, which now supports the us-ASCII and the ASCII encoding.

You can obtain this parser by choosing the "Downloads" link on the following Microsoft Web site at:

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Cut and paste the following code into a text file in Microsoft Notepad and save it as Books.xml:
    <?xml version="1.0" encoding="us-ascii"?>
    <Books>
      <Book>
    	<ISBN>123-098-0009</ISBN>
    	<TITLE>XML is Fun</TITLE>
      </Book>
    </Books>
    					
  2. Open Books.xml in Microsoft Internet Explorer, and note that the MSXML 2.0 parser generates the error message in the "Symptoms" section earlier in this article.
  3. Change the encoding to ascii, save Books.xml, and note that when you open it in Internet Explorer you receive the same error message again.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbDSupport kbMSXMLnosweep KB262630