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

WBOY
Release: 2016-06-13 13:49:11
Original
1078 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template