error invalid byte sequence for encoding utf8 0x00 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()