Solve the problem of Chinese characters in XMLHTTP

xiaoxiao2021-03-06  40

<% '----------- Send.asp ----------------------- set Xmlhttp = Server.createObject ("Microsoft. XMLHTTP ") XMLHTTP.Open" Post "," http://localhost/sm/get.asp ", false xmlhttp.setRequestHeader" Content-Type "," text / xml "xmlhttp.send" How to solve the XMLHTTP submission back is garbled, this is to submit it, return the text.

Response.write xmlhttp.responsexml.xml%> <% @ language = vbscript%> <% '------------------ Get.asp -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------- response.contenttype = "text / xml" response.charset = "GB2312"

DIM VARCOUNT, VARREQ, XmLDomvarcount = Request.totalBytesvarreq = Request.binaryRead (VARCOUNT)

If Request.ServerVariables ( "REQUEST_METHOD") = "POST" Then Set xmldom = Server.CreateObject ( "MSXML2.DOMDocument") xmldom.load varReq Response.Write " "& xmldom.documentelement.xmlelse response.write" <> how to solve the XMLHTTP submission back to garbled, this is from The server directly returned directly. <"END IF%>

转载请注明原文地址:https://www.9cbs.com/read-60019.html

New Post(0)