Answers for "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 76: invalid start byte"

2

UnicodeDecodeError: 'utf-8' codec can't decode byte invalid start byte

# Use 'ISO-8859-1' instead of "utf-8" for decoding
text = open(fn, 'rb').read().decode('ISO-8859-1')
Posted by: Guest on September-23-2020

Code answers related to "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 76: invalid start byte"

Python Answers by Framework

Browse Popular Code Answers by Language