Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
27081 Переглядів

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

Аватар
Відмінити

Hi 


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

Найкраща відповідь

Hi

This link may help you utf8-codec-can-t-decode-byte-error-when-importing-a-list-of-products-as-a-csv-file-40340

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити