'charmap' codec can't decode byte 0x81 in position 7635: code example Example: 'charmap' codec can't decode byte 0x98 in position file = open(filename, encoding="utf8")