sax解析器抛出异常
<?xml version='1.0' encoding='EUC-JP'?>
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
<body>·Ñ³meeting</body>
</note>
如果我删除第一行和日语字符行,则解析器可以正常工作。
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
</note>
任何想法如何使其适用于其他编码。
答案 0 :(得分:0)
很难说不确定你正在使用什么SAX解析器。这有帮助吗?
http://www.lllf.uam.es/~antonio/documentos/xerces/faq-parse.html#faq-20