selik / xport

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

from_columns error #27

Closed sbjain closed 4 years ago

sbjain commented 5 years ago

Hi, when using from_columns function from xport, I get following error for a couple files. The other 15 work fine. Please advise why this error occurs?

"xport.py", line 666, in from_columns column[ i ] = value.encode('ISO-8859-1') UnicodeDecodeError: 'ascii' codec cant decode byte 0xa0 in position 11: ordinal not in range(128).

selik commented 5 years ago

Sounds like those files have non-ascii characters, perhaps some emoji. You can ignore or replace those characters when encoding.

selik commented 4 years ago

Please make a new issue if this is still troubling you.