invalid byte sequence for encoding "UTF8": 0xca 0x7f code example
Example: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa5 in position 10: invalid start byte
#use rb over r
with open(path, 'rb') as f:
text = f.read()
#use rb over r
with open(path, 'rb') as f:
text = f.read()