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