$dom = new DOMDocument("1.0",'utf-8');
header("Content-Type: text/plain");
在生成XML文件时,提示无效字符,然后有个错误。
修改后问题就解决了。
修改成:
$dom = new DOMDocument("1.0");
header("Content-Type: text/plain");
还要对你的文字加上这个函数 htmlspecialchars().
$dom = new DOMDocument("1.0",'utf-8');
header("Content-Type: text/plain");
在生成XML文件时,提示无效字符,然后有个错误。
修改后问题就解决了。
修改成:
$dom = new DOMDocument("1.0");
header("Content-Type: text/plain");
还要对你的文字加上这个函数 htmlspecialchars().