ServerXMLHTTP and Double-byte Encoding

J

Jen

Hello,

I am trying to use ServerXMLHTTP to post data containing Japanese
characters, but the data posts as question marks, boxes or just random ascii
characters.

Here is the code I am using:

set xmlHTTPObj = Server.CreateObject("Msxml2.ServerXMLHTTP")
xmlHTTPObj.Open "POST",
"http://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8", False
xmlHTTPObj.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded; charset=UTF-8"
xmlHTTPObj.Send strQuery

Response.write xmlHTTPObj.responseText
set xmlHTTPObj = nothing

Is there something I'm missing in there? Also, I don't know if this makes
any difference, but we do not have the Japanese language pack installed on
our web server.

Any help anyone can provide would be greatly appreciated!

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top