By python I have read some xml data and put them into a pandas.DataFrame now I want to write them in a file by df.to_csv(...)
but it gives me this error
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 1257: ordinal not in range(128)
How can I make 'ascii' codec understand codes like u'\u2014'
, u'\u2019'
etc