Select to view content in your preferred language

UnicodeDecodeError in Jupiter Notebook - ArcGIS Pro

590
1
09-18-2023 10:05 AM
AdrianaPaese
Frequent Contributor

Hello,

I am having a hard time reading a .csv file in Jupiter Notebooks, ArcGIS Pro, due to special characters (ç, ~, ^, etc) - the text is in Brazilian Portuguese. I am using Pandas (read_csv).

The error message is 

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 785: invalid continuation byte

Could anyone help me?

Thank you!

0 Kudos
1 Reply
AdrianaPaese
Frequent Contributor

The following line seem to have worked

pd.read_csv(csv_roubo_cel_jan_22, encoding='ISO-8859-1', on_bad_lines='skip')

Thank you