日期:2014-05-17  浏览次数:20528 次

php自带soap,读取webservice的xml内容中文变乱码
$client->soap_defencoding = 'utf-8';
$client->xml_encoding = 'utf-8';
使用的是php自带的soap,webservice是.net写的,加了上面的语句也还是乱码,怎么办?

------解决方案--------------------
header("Content-Type: text/html; charset=utf-8");
------解决方案--------------------
php文件另存成utf8编码的文件~