标识符修复中的字符无效?

时间:2017-06-03 21:18:12

标签: python character-encoding python-unicode

file = open(filename, 'r')
file.read()
new = 'first_filter_' + filename
words.save(new)
#words = text.split(' ')

错误讯息:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 24: ordinal not in range(128)

0 个答案:

没有答案