跳至內容
選單
此問題已被標幟
2 回覆
27079 瀏覽次數

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. 

最佳答案

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

頭像
捨棄