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

I am trying to get the odoo local host server to work. i am getting the error as: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 97: invalid start byte.

The pre installations are already done the postgres, pgadmin, newest python version. i am using pycharm in windows. i think the erros is due to the psycopg2 wiht the postgres server. any one had the same issue??


อวตาร
ละทิ้ง

Hi, did you find the solution to this problem?


คำตอบที่ดีที่สุด

I'm pretty sure the issue is due to the browser cache. Try opening it in a private/incognito window to confirm.  

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

i think the issue in the postgres user try to alter role utf8 to user by the below (run it from psql shell)

ALTER ROLE user SET client_encoding TO 'utf8';

change user with your postgres user

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I'm setting up odoo 18 on localhost and I encountered this error. Your solution worked very well for me. Thank you!

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

There was no easy fix. It seems that running the odoo server locally in windows is a huge gamble, dependency-version-wise. 


Therefore I am using wsl now at the tradeoff of slightly worse PyCharm integration.

This Video was great help: https://www.youtube.com/watch?v=4wpaTRaOwJo


Best 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 21
4409
1
ก.ค. 25
1495
1
มิ.ย. 24
1999
2
เม.ย. 24
10692
0
ม.ค. 24
2300