Home  >  Article  >  Backend Development  >  php自带soap,读取webservice的xml内容中文变乱码解决办法

php自带soap,读取webservice的xml内容中文变乱码解决办法

WBOY
WBOYOriginal
2016-06-13 13:49:111023browse

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编码的文件~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn