你的位置:首页 > 软件开发 > Java > xml中1字节的UTF

xml中1字节的UTF

发布时间:2017-02-20 00:00:27
转自:http://blog.csdn.net/zhangzhikaixinya/article/details/7727938今天在eclipse中编写pom.The cause of this is a file that is not UTF-8 is being ...

转自:http://blog.csdn.net/zhangzhikaixinya/article/details/7727938

今天在eclipse中编写pom.

The cause of this is a file that is not UTF-8 is being parsed as UTF-8. It is likely that the parser is encountering a byte value in the range FE-FF. These values are invalid in the UTF-8 encoding.

但这次很诡异,我使用notepad++将pom.

第一,可以直接在

         <?

第二,可以在Eclipse中更改,在 eclipse 的功能表 [Project]→[Properties],點選 [Resources],在右邊的「Text file encoding」,把原來是系統預設的編碼,改為 「UTF-8」。

第一种方案可行,属于逃避的方法,放弃!第二种也不是解决我这种问题的,继续网上搜索惊奇的发现,原来解决方案是这样的:


 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:xml中1字节的UTF

关键词:xml

xml
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。