<?xml version="1.0" encoding="UTF-8"?>
<start>
<sort>
<first>1</first>
<country>chinese</country>
<town>邯郸</town>
<title>not anything</title>
</sort>
<sort>
<first>2</first>
<country>japanese</country>
<town>北海道</town>
<title>not anything</title>
</sort>
</start>
这么写 有错么? 我写的小测试。 总报错。不知道为什么。
<start>
<sort>
<first>1</first>
<country>chinese</country>
<town>邯郸</town>
<title>not anything</title>
</sort>
<sort>
<first>2</first>
<country>japanese</country>
<town>北海道</town>
<title>not anything</title>
</sort>
</start>
这么写 有错么? 我写的小测试。 总报错。不知道为什么。
XML解析错误:未组织好
位置:http://localhost/demo/xml/sort.xml
行:6,列:9: <town>���</town>
如果保存成 gbk 的那么就得 encoding="gbk"总之字符集声明要与内容一致