export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
sudo -u postgres psql -c "SHOW SERVER_ENCODING"
martin@Thinkpad-T410:~/workspace/airtime$ sudo -u postgres psql -c "SHOW SERVER_ENCODING"[sudo] password for martin:server_encoding-----------------UTF8(1 row)
sudo -sapt-get purge postgresqlexport LC_ALL=en_US.UTF-8apt-get install postgresql
mckendree@radio:~$ sudo -u postgres psql -c "SHOW SERVER_ENCODING"
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
sudo apt-get purge postgres*
sudo apt-get install postgresql
It looks like you're new here. If you want to get involved, click one of these buttons!