A
Ari Krupnik
When I send an XML document over XMLHTTPRequest, IE encodes it in
UTF-16, but fails to set the "encoding" part of "Content-Type:"
header. According to rfc 2616, default encoding in HTTP is
ISO-8859-1. Parsing a UTF-16 stream as ISO-8859-1 of course fails on
well-formedness errors.
In Mozilla, I can call setRequestHeader() and specify the actual
content type, but IE seems to ignore this call if the header name is
"Content-Type".
To make this work, I need to either make IE serialize the document in
ISO-8859-1, or to set the correct Content-Type. How can I do this?
Ari.
UTF-16, but fails to set the "encoding" part of "Content-Type:"
header. According to rfc 2616, default encoding in HTTP is
ISO-8859-1. Parsing a UTF-16 stream as ISO-8859-1 of course fails on
well-formedness errors.
In Mozilla, I can call setRequestHeader() and specify the actual
content type, but IE seems to ignore this call if the header name is
"Content-Type".
To make this work, I need to either make IE serialize the document in
ISO-8859-1, or to set the correct Content-Type. How can I do this?
Ari.