php自带soap,读取webservice的xml内容中文变乱码
$cli本文来源gaodai#ma#com搞@@代~&码*网/搞gaodaima代码ent->soap_defencoding = ‘utf-8’;
$client->xml_encoding = ‘utf-8’;
使用的是php自带的soap,webservice是.net写的,加了上面的语句也还是乱码,怎么办?
——解决方案——————–
header(“Content-Type: text/html; charset=utf-8”);
——解决方案——————–
php文件另存成utf8编码的文件~