python3 userdict.txt 加载错误
liutianfang opened this issue · comments
liutianfang commented
我的环境:win10中文版,python3.6
examples的错误信息
UnicodeDecodeError: 'gbk' codec can't decode byte 0xaa in position 35: illegal multibyte sequence
我的修复:
dag.py line 159: with open(fname, 'r',encoding='utf-8') as f:
Sean commented
@liutianfang 由于没在windows下测试,所以不保证兼容,下一版本会兼容windows
Yu commented
加个mode 和 encoding 属性就行