Home  >  Article  >  Backend Development  >  php输出xml有关问题

php输出xml有关问题

WBOY
WBOYOriginal
2016-06-13 10:16:39667browse

php输出xml问题

test不可能吧

输出是这样子的,我在flash里在调出现乱码。然后把这个xml文件重新用记事本另存为utf-8后才可以,每次生成都这样子,怎么回事呢?

------解决方案--------------------
生成xml文件的时候设置好编码utf-8,把代码贴出来看看
------解决方案--------------------
你生成xml的这个文件编码设置成utf-8
另外修改
header('Content-Type: text/html; charset=utf-8');

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