I have a line:
c.writerow(new_values)
This writes a series of values ββto the csv file. It usually works fine, but sometimes it throws an exception and does not write the line to the csv file. I have no idea how I can find out why.
This is my exception handling right now:
try: c.writerow(new_values) except: print() print ("Write Error: ", new_values)
I commented on my own exception, and he says:
return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u03b1' in position 14: character maps to <undefined>
source share