Skip to Content
Menu
This question has been flagged
2 Replies
25791 Views

Hi experts, 


I am using odoo version 10, community versionGot this error while uploading a list of products. I checked for any typos and so on but nothing is found. Can someone pls tell me how to rectify this. Any help will be much appreciated as I am a beginner in odoo. 


Thanks

Avatar
Discard

Hi 


I tried all these mentioned in the link but still in vain..i am confused like anything. 

Best Answer

This will solve UnicodeDecodeError :

 df.read_csv('file_name.csv', engine='python')

The pd.read_csv documentation notes specific differences between 'c' (default) and 'python' engines. The names indicate the language in which the parsers are written. 

Files store bytes, which means all unicode have to be encoded into bytes before they can be stored in a file. The pandas read_csv() takes an encoding option to deal with files in different formats. So, you can specify an encoding, such as utf-8.

df.read_csv('filename.csv',encoding='utf-8')

http://net-informations.com/ds/err/uni.htm

Avatar
Discard