2 years ago
#49065
user30675
How to determine and set the correct python unicode format
I run the following lines of code using python 3.9 and receive the error message "UnicodeDecodeError: 'ascii' codec can't decode byte 0x94 in position 4: ordinal not in range(128)".
# -*- coding: utf-8 -*-
import pickle
fName = 'fileName.pkl'
with open(fName, 'rb') as file:
data = pickle.load(file)
How do I know what the correct encoding format is? What are the different encoding formats?
unicode
pickle
python-unicode
0 Answers
Your Answer