Trying to read from a CSV file and write the data into an XML file. I am encountering:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8a in position 87: ordinal not in range(128)
My question is, what is the best way to ignore this kind of error and continue processing the data set. After reading other similar questions, I did add: # -*- coding: utf-8 -*- to my file but it didn't help
input.decode("utf-8")(if your input is utf-8).