ServerXMLHTTP and Double-byte Encoding

Discussion in 'ASP General' started by Jen, Dec 8, 2005.

  1. Jen

    Jen Guest

    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!
     
    Jen, Dec 8, 2005
    #1
    1. Advertisements

  2. Jen

    Guest

    Were you able to find an answer to this? I'm having the same issue.
    Thanks.
     
    , Dec 21, 2005
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RodBillett

    Querystring and Double-Byte characters

    RodBillett, Aug 30, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,490
    Joerg Jooss
    Aug 31, 2004
  2. Richard
    Replies:
    11
    Views:
    1,472
    Adam Maass
    Feb 1, 2006
  3. crash.test.dummy
    Replies:
    1
    Views:
    1,213
    Knute Johnson
    Feb 17, 2006
  4. Sydex
    Replies:
    12
    Views:
    7,201
    Victor Bazarov
    Feb 17, 2005
  5. DaBeef
    Replies:
    1
    Views:
    785
    Matt Humphrey
    Jul 21, 2006
  6. jeko

    reading a double var byte per byte

    jeko, Jan 18, 2005, in forum: C Programming
    Replies:
    12
    Views:
    787
  7. jt
    Replies:
    3
    Views:
    1,146
    Keith Thompson
    May 23, 2005
  8. giusticce

    ASCII encoding and byte array

    giusticce, Aug 18, 2008, in forum: C Programming
    Replies:
    0
    Views:
    623
    giusticce
    Aug 18, 2008
Loading...