Postgres locale error

后端 未结 2 917
感情败类
感情败类 2021-02-19 03:04

I have a Postgres database hosted on Digital River, on Ubuntu, and followed these instructions to install:

But something is wrong with the locale settings and I cannot w

2条回答
  •  醉话见心
    2021-02-19 03:38

    After trying ardochhigh's answer:

    $ sudo locale-gen en_US en_US.UTF-8 
    $ sudo dpkg-reconfigure locales
    

    the problem persisted

    After that I saw this answer that solved the problem for me:

    https://www.digitalocean.com/community/questions/language-problem-on-ubuntu-14-04

    Aparently LAGUAGE shell variable is not set:

    $ sudo bash
    
    $ export LANGUAGE="en_US.UTF-8"
    $ echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale
    $ echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale
    
    $ # next: logout and login
    

提交回复
热议问题