Get the App
SLTechnology News&Howtos  ›  Database  › 

PostgreSQL inserts data from the terminal and contains Chinese characters, which will cause garbled codes.

Shulou Source: shulou.com Published: 2022-06-01 18:00:38 10月01日 Update

Solution:

Setting environment variables in terminal server

export PGCLIENTENCODING=UTF8

Tags: Terminal method variable server environment service garbled data Chinese Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Huawei Shulou Tech Info Redmi MariaDB