欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Invalid byte 1 of 1-byte UTF-8 sequence

程序员文章站 2022-05-23 21:03:08
...

 

用UE编写build.xml文件,文件编码设置为"UTF-8",还是出现编码问题。

 

Invalid byte 1 of 1-byte UTF-8 sequence
            
    
    博客分类: Ant&Maven  

 

 

还是编码老问题,解释如下:

 

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.

 

解决办法:

(1)编码方式改为GBK或者GB2312,不推荐这种做法;

(2)将UTF-8改为UTF8.(无语吧,Spring中也存在这个问题)

 

 

 

 

  • Invalid byte 1 of 1-byte UTF-8 sequence
            
    
    博客分类: Ant&Maven  
  • 大小: 35.4 KB