记事本UTF-8

用记事本将xml文件另存为UTF-8格式,使用XML解析器解析时总出现::::1:1:0:Content is not allowed in prolog的错误。
用vim查看文件内容,发现在文件头多出了0xfe0xff。
删除,问题解决。

Leave a Reply

Your email address will not be published. Required fields are marked *

*