Thank for the reply.
"Martin Honnen" <mahotrash@yahoo.de> wrote in message
news:%23EQo4Fh5FHA.2484@TK2MSFTNGP09.phx.gbl...
>
>
> Dana wrote:
>
>> I am having a problem with the following code:
>>
>> Response.CharSet = "UTF-8"
>> url = "
http://www.domain.com/myisapi.dll" >> set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
>> xmlhttp.open "POST", url, false
>> xmlhttp.setRequestHeader "Content-Type", "text/HTML"
>> xmlhttp.setRequestHeader "CharSet", "UTF-8"
>> xmlhttp.send "param=1"
>> txt = xmlhttp.responsetext
>>
>> The request is sent properly to the page (myisapi.dll) but the returned
>> valued is not correct!!
>>
>> Characters over 127 ascii, will be converted to question marks, even
>> though I changed the Response.CharSet
>
> responseText with XMLHTTP and MSXML is not very helpful to receive the
> response from an abritrary web page and decode it, it can and does deal
> with Unicode encodings like UTF-8 but it does not decode any ISO-8859-x
> encoding for instance, it assumes an Unicode encoding and only looks for a
> BOM (byte order mark).
> Documentations is here:
> <
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/b035fdea-8665-4d7b-80f0-3624d269e7b6.asp>
>
> Depending on what you want to do it might be possible to use responseBody
> or responseStream instead of responseText e.g. within ASP
> Response.BinaryWrite xmlhttp.responseBody
> might do to output the response body XMLHTTP received.
>
>
>
> --
>
> Martin Honnen --- MVP XML
>
http://JavaScript.FAQTs.com/