selik / xport

Python reader and writer for SAS XPORT data transport files.
MIT License
49 stars 24 forks source link

UnicodeEncodeError: 'latin-1' codec can't encode character '\u2076' in position 2: ordinal not in range(256) #67

Closed kennest closed 3 years ago

kennest commented 3 years ago

I've superscript chars in some rows and while i attempted to generate XPT il show this error. UnicodeEncodeError: 'latin-1' codec can't encode character '\u2076' in position 2: ordinal not in range(256) please helps

selik commented 3 years ago

It sounds like those superscript characters aren't supported by the XPT format. Replace them with a different character.