PRB: HRESULT C00CE56E "System Does Not Support the Specified Encoding" Error Message with MSXML


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:

System does not support the specified encoding.

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


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.

"ISO8859_1" 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 "ISO-8859-1", which is not an accepted alias.


To resolve this problem, do either of the following:

  • Change the character encoding string in the relevant Java server environment from "ISO8859_1" to "ISO-8859-1". -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.


This behavior is by design.


For more information, see the following Web site:

IANA Character Set Registry

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.