Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
27083 มุมมอง

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

อวตาร
ละทิ้ง