有2种可能
1、doc = new DOMDocument();
$doc->loadXML($HTTP_RAW_POST_DATA);处理的时候已经帮你自动转换成UTF-8了
2、你服务器的apache或php的默认字符集定义成UTF-8了
1、doc = new DOMDocument();
$doc->loadXML($HTTP_RAW_POST_DATA);处理的时候已经帮你自动转换成UTF-8了
2、你服务器的apache或php的默认字符集定义成UTF-8了
解决方案 »
- php读远程数据库的传输速度问题?
- 给gif动态图片添加水印,在线等!!!
- 帮帮忙 解释下fsockopen函数
- logout菜鸟问题!!!!!
- 大家提供一个PHP整站系统
- 基于php.mysql动态网页生成静态网页技术
- 问个 group by 问题
- 这是意思?<form method="POST" action="<?php echo $_SERVER['PHP_SELF'].'?inc_name=edit_customer&cid='.$_REQUEST['cid']; ?>">
- TO:hncslsy(hihi) 关于一个统计sql
- win2k 下 MYSQL与MSSQL是不是有冲突呢?
- PHP生成PDF,提示PDFlib error: [2602],什么原因?
- 验证码那里把那些字弄歪来是怎么弄的啊?
2。php的dom只支持utf8编码
Note that these DOM functions expect (and presumably return) all their data in UTF-8 character encoding, regardless of what PHP's current encoding is. This means that text nodes, attribute values etc, should be in utf8.This applies even if you're generating an XML document which is not ultimately in utf8.
把汉字编码转成utf-8.
那为什么CSDN上的没有转换。
你随便在CSDN上打开一个帖子。另存一下看看?
这难道和用的语言不同有关系?
Note that these DOM functions expect (and presumably return) all their data in UTF-8 character encoding, regardless of what PHP's current encoding is. This means that text nodes, attribute values etc, should be in utf8.This applies even if you're generating an XML document which is not ultimately in utf8.
这段话哪有?
我在手册上怎么没看到?