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

时间:2023-03-09 16:58:55
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc7 in position 20: ordinal not in range(128)
dict = pickle.load(open(file, 'rb'))

修改为:

dict = pickle.load(open(file, 'rb'), encoding='iso-8859-1')