D
D
DiIce2016-06-26 20:37:46
PostgreSQL
DiIce, 2016-06-26 20:37:46

How to change Postgresql server encoding?

Installed postgresql server on debian 8.
It set SQL_ANCII encoding by default
How to change server and database encoding to UTF8?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-06-27
@rostel

create with desired locale

/usr/lib/postgresql/9.5/bin/initdb -D /var/lib/postgresql/9.5/dbnew --locale=ru_RU.UTF-8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question