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

php输出xml有关问题

WBOY
Release: 2016-06-13 13:36:33
Original
967 people have browsed it

php输出xml问题

test不可能吧

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

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

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