Microsoft KB Archive/304625

= PRB: HRESULT C00CE56E &quot;System Does Not Support the Specified Encoding&quot; Error Message with MSXML =

Article ID: 304625

Article Last Modified on 11/5/2001

-

APPLIES TO


 * Microsoft XML Parser 2.6
 * Microsoft XML Core Services 4.0
 * Microsoft XML Parser 3.0 Service Pack 1
 * Microsoft XML Core Services 4.0

-



This article was previously published under Q304625



SYMPTOMS
When you load a remote XML document from a Web server by using either XMLHTTP or IXMLDocument::Load, you may receive the following error message:

HRESULT C00CE56E

System does not support the specified encoding.

This error is most prevalent when you use a Java-based middle-tier application framework.



CAUSE
As of version 2.6, MSXML passes all XML documents through Mlang.dll to verify their encoding. If Mlang.dll encounters a non-standard encoding string, it returns an error.

&quot;ISO8859_1&quot; is the canonical representation of the Latin-1 character encoding string in the Java language and class libraries. The standard that is defined by the Internet Assigned Numbers Authority, however, is &quot;ISO-8859-1&quot;, which is not an accepted alias.



RESOLUTION
To resolve this problem, do either of the following:
 * Change the character encoding string in the relevant Java server environment from &quot;ISO8859_1&quot; to &quot;ISO-8859-1&quot;. -or-


 * Use IXMLDOMDocument::get_responseBody to retrieve the data as a raw buffer of bytes. If you are developing the application in Microsoft Visual C++, you may define an HGLOBAL handle for your data and use CreateStreamOnHGlobal to make processing the data easier.



STATUS
This behavior is by design.

