New to Dataiku DSS? Try out our NEW Quick Start Programs today and get onboarded on the product in just one hour! Let's go

'ascii' codec can't encode character u'\x82' in position 42: ordinal not in range(128)

Solved!
UserBird
Dataiker
Dataiker
'ascii' codec can't encode character u'\x82' in position 42: ordinal not in range(128)
HTTP code: 500, type: UnicodeEncodeError

I get this error when launching a prediction model.
1 Solution
jrouquie
Dataiker Alumni
This is probably due to a column name containing an accent (like “é”). Try renaming the column.

View solution in original post

0 Kudos
2 Replies
jrouquie
Dataiker Alumni
This is probably due to a column name containing an accent (like “é”). Try renaming the column.

View solution in original post

0 Kudos
stevejonn
Level 1

To use a specific encoding (e.g. 'utf-8') use the encoding argument for pandas to csv:

df.to_csv(file_name, sep='\t', encoding='utf-8')

 

0 Kudos
Labels (2)
A banner prompting to get Dataiku DSS