learning-nlp icon indicating copy to clipboard operation
learning-nlp copied to clipboard

UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 4: illegal multibyte sequence

Open xjfl64 opened this issue 6 years ago • 1 comments

UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 4: illegal multibyte sequence

xjfl64 avatar Nov 28 '18 04:11 xjfl64

每个open函数中加入encoding='utf-8' , 比如:open(vocabFile, "w",encoding='utf-8')

Hejp5665 avatar Jan 25 '19 02:01 Hejp5665