久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php調(diào)用webservice 亂碼怎么辦

      php調(diào)用webservice亂碼的解決辦法:首先打開“nusoap.php”文件;然后修改內(nèi)容為“var $soap_defencoding = 'UTF-8';”;最后在調(diào)用時(shí)指定編碼即可。

      php調(diào)用webservice 亂碼怎么辦

      推薦:《PHP視頻教程》

      webservice中有中文的話,返回的值就變成了亂碼.查看了一下response的結(jié)果,是正確的.應(yīng)該是用nusoap處理的時(shí)候出現(xiàn)了問題.

      更改了nusoap.php兩個(gè)地方就OK了.

      更改的地方:

      86行的:var $soap_defencoding = 'UTF-8'; 4998行的:var $decode_utf8 = false;

      不更改也可以,不過在調(diào)用的時(shí)候就必須指定編碼.

      1.服務(wù)器端接口

      $server=new soap_server();     //生成對象 $server->soap_defencoding = 'utf-8'; $server->decode_utf8 = false;

      2.調(diào)用用接口

      $client = new soapclient('http://localhost/TestService/Service1.asmx?WSDL', true); $client->soap_defencoding = 'UTF-8'; $client->decode_utf8 = false;

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)