Invalid byte 1 of 1-byte UTF-8 sequence
程序员文章站
2022-05-23 21:03:08
...
用UE编写build.xml文件,文件编码设置为"UTF-8",还是出现编码问题。
还是编码老问题,解释如下:
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中也存在这个问题)
推荐阅读
-
当在命令行中执行virtualenv venv时报此错误:'utf-8' codec can't decode byte 0xd5 in position 38: invalid continuation by
-
UnicodeDecodeError: 'utf-8' codec can't decode byte in position : invalid continuation byte
-
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc7 in position 0: invalid continuation byte
-
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 0: invalid continuation byte
-
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 0: invalid continuation byte解决
-
python爬虫-UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
-
php解析xml提示Invalid byte 1 of 1-byte UTF-8 sequence错误的处理方法
-
php解析xml提示Invalid byte 1 of 1-byte UTF-8 sequence错误的处理方法_php技巧
-
php解析xml提示Invalid byte 1 of 1-byte UTF-8 sequence错误的处理方法_PHP教程
-
php解析xml提示Invalid byte 1 of 1-byte UTF-8 sequence错误的处理方法_php技巧