我现在用SAX来解析XML文件,但XML文件中有乱码,例如:収?X,
总会报:org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x2) was found in the element content of the document.这样的错,我知道这错是什么意思,可是怎么才能解决这个问题使解析能顺利通过呢?如果取得乱码值最好。
...全文
1852打赏收藏
关于用SAX解析含有乱码的XML文件
我现在用SAX来解析XML文件,但XML文件中有乱码,例如:収?X, 总会报:org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x2) was found in the element content of the document.这样的错,我知道这错是什么意思,可是怎么才能解决这个问题使解析能顺利通过呢?如果取得乱码值最好。