如果服务器返回是
<a>
<name>sss</name>
<card></card>
<a>
在客户端可正常解析
如果返回的是汉字
<a>
<name>卢成金</name>
<card>88888</card>
<a>
在客户端取不到数据
解决办法:因为汉字的编码格式是GBK或gb2312
客户解析时如果没显示设定encoding 会使用 UTF-8格式
<?xml version="1.0" encoding="gb2312"?>
<a>
<name>卢成金</name>
<card>88888</card>
<a>
<a>
<name>sss</name>
<card></card>
<a>
在客户端可正常解析
如果返回的是汉字
<a>
<name>卢成金</name>
<card>88888</card>
<a>
在客户端取不到数据
解决办法:因为汉字的编码格式是GBK或gb2312
客户解析时如果没显示设定encoding 会使用 UTF-8格式
<?xml version="1.0" encoding="gb2312"?>
<a>
<name>卢成金</name>
<card>88888</card>
<a>