把要传递的汉字用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)
}
然后在WebService程序中用
m_ClientName=System.Web.HttpContext.Current.Server.UrlDecode(m_ClientName);
解码即可
function getCallDetails() {
iCallID = service.svcWeather.callService(showCallDetails,"GetCallDetails",encodeURI(document.Form1.TB_ClientName.value),document.Form1.TB_ClientPhone.value,document.Form1.TB_IDCard.value)
}
然后在WebService程序中用
m_ClientName=System.Web.HttpContext.Current.Server.UrlDecode(m_ClientName);
解码即可