0
steave ray posted
Python Error : UnicodeEncodeError: 'charmap' codec can't encode character
i am writing a sql file to text file by python write function
f = open("do_re_mi.txt", "w+")
f.write(text)
f.close()
it give me UnicodeEncodeError: 'charmap' codec can't encode character
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\ue802' in position
1451: character maps to <undefined>