System does not support the specified encoding

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="color:#333333; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
I am seeing problem with MSXML6 failing to load xml document over HTTP when http header has content-Type:text/xml;charset=utf-8.it provides error message as "<span style="font-style:inherit; font-family:Calibri,sans-serif; outline-width:0px; outline-style:initial; outline-color:initial; color:#1f497d; font-size:15px; padding:0px; margin:0px; border:0px initial initial System
does not support the specified encoding."
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
below is the http headers
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; white-space:pre; padding:0px; margin:0px; border:0px initial initial HTTP/1.1 200 OK
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; white-space:pre; padding:0px; margin:0px; border:0px initial initial Date: Thu, 15 Sep 2011 15:10:30 GMT
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; white-space:pre; padding:0px; margin:0px; border:0px initial initial Server: Microsoft-IIS/6.0
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
X-Powered-By: ASP.NET
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
X-AspNet-Version: 2.0.50727
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
Cache-Control: private
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
Content-Type: text/xml; charset=utf-8
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
Content-Length: 72
<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial

<div style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; padding:0px; margin:0px; border:0px initial initial
when i remove charset=utf-8 from content-Type then MSXML6 is able to load document over http without any issue.


View the full article
 
Back
Top