0

I'm trying to use one csv file using csv.reader and facing issue in decoding unicode character, tried all possible ways. here is my code-

 def get_input_dup(path):
            with open(path, 'r', encoding='utf-8') as f:
                reader = csv.reader(f)
                sentence_pairs = list(reader)
            #print(data)
            return sentence_pairs

this is the error message "return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 16: character maps to " any help is appreciated.

0 Answers0