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

Database creation error: encoding "UTF8" does not match locale "en_US" DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".

 
i'm facing the problem when  create database using odoo13  

it works fine with odoo10 

อวตาร
ละทิ้ง

Please use a meaningful title next time and provide the necessary information.

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

1- Uninstall postgres using:

sudo apt-get --purge remove postgresql postgresql-*
dpkg -l | grep postgres
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common


2- change locales/rebooted before running salt

sudo update-locale LANG=en_US.utf8

sudo update-locale LANGUAGE=en_US.utf8 

reboot

3- reinstall sql and create user using:

sudo apt install postgresql



sudo su - postgres -c "createuser -s odoo"
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Mostafa:

Looks like the system locale has not been configured for UTF-8. The following link provides instructions on how to configure the system locale on Debian 9. You will need to do something similar based on the operating system of your server.

https://www.rosehosting.com/blog/configure-system-locale-on-debian-9/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
1635
_sql_constraints fail to be effective แก้ไขแล้ว
2
มี.ค. 24
5515
1
ก.พ. 24
2719
0
ส.ค. 21
2670
0
ส.ค. 21
2737