WebService.htc Unable to pass the solution of Chinese data

xiaoxiao2021-03-06  84

Today, when I call WebService when I call WebService, I want to pass the name as a parameter to WebService but I have become the WebService.htc Chinese characters.

solve:

First use the Chinese characters you want to pass on Encodeuri

Function getCallDetails () {

iCallID = service.svcWeather.callService (showCallDetails, "GetCallDetails", encodeURI (document.Form1.TB_ClientName.value), document.Form1.TB_ClientPhone.value, document.Form1.TB_IDCard.value)

}

Then use in the WebService program

m_clientname = system.Web.httpContext.current.server.urldecode (m_clientname);

Decode

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

New Post(0)