When writing a **.xml file in eclipse today, the Chinese in the note was identified by eclipse as an error: Byte 3 of the 3-byte UTF-8 sequence is invalid and has encountered this problem many times, the root cause of the problem is:
The cause of this is a file which is not UTF-8 is being parsed as UTF-8. It is likely, the parser is encountering a, a byte value in the range fe-ff. These values is invalid in the UTF-8 encoding.
But this is very strange, I use notepad++ to save Pom.xml code as "UTF-8 no BOM" form, pom.xml file encoding attribute set to "UTF-8", the problem is still ah, depressed, is the above theory has problems. or the eclipse bug. Read on the internet for a long while, basically say so.
First, you can change UTF-8 to GBK or GB2312 directly in the XML file
<properties>
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>
</ Properties>