PDA

View Full Version : About UTF and XMLHTTP


anandraj
06-05-2003, 02:17 PM
Hi All,
I am using the XMLHTTP POST Method in my Pages and also I am handling the localization by using the utf-8 encoding.
While sending the XMLHTTP request I am sending the *<? xml version="1.0" encoding="utf-8"?>* in the XML
but Still I am getting the Correct Characters.
I have also tried setting the header using the setRequestHeader("charset","utf-8"). but no use.
Is there any other way to do this.
Thanks in Advance
Anandraj.A.

liorean
06-05-2003, 02:55 PM
The request header to change would be Content-Type, and the correct value would be 'application/xml;charset=utf-8' or 'text/xml;charset=utf-8'. Question is if XMLHTTP (I guess you're talking about the iew ActiveX object here) support different charsets, and if so, in what way? What does MSDN have to say about it?

anandraj
06-06-2003, 07:21 AM
Thanks a lot
but it is not working Can u give me some other alternative for this.

Anandraj

liorean
06-06-2003, 12:35 PM
This sounds like an iew problem, not a problem with the general functionality. Iew seems to not convert data to the appropriate charset. My only advice here is to try to set the browser charset (or that of the page you have this script in) to utf-8 and try if that helps.

anandraj
06-09-2003, 07:12 AM
Hi liorean
I tried that also by adding the emta tags to the pages but still I am not able to get the encoded strings.
Any Other way to try this.

Thanks in Advance
Anandraj.A.