UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x8d in position 7240: character maps to

i have solved this issue.
we can use this code

import codecs
types_of_encoding = ["utf8", "cp1252"]
for encoding_type in types_of_encoding:
    with codecs.open(filename, encoding = encoding_type, errors="replace") as csvfile:
        your code
        ....
        ....

Leave a Comment