'charmap' codec can't decode byte 0x9d in position 1584: character maps to <undefined> code example
Example: UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 92: character maps to
file = open(filename, encoding="cp437")
file = open(filename, encoding="cp437")