首页 > 代码库 > UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 33: ordinal not in range(128) [

UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 33: ordinal not in range(128) [

chromium资源文件编译错误:
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x83 in position 33: ordinal not in range(128)
[914/18075] ACTION Generating resources from app/generated_resources.grd
解决方案:
在src\tools\grit\grit\grit_runner.py添加
reload(sys)sys.setdefaultencoding("cp1251")

UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 33: ordinal not in range(128) [