How to change the encoding of the Postgresql server?

Installed the postgresql server on debian 8.
It is by default set encoding SQL_ANCII
How to change the encoding the server and database to UTF8?
July 8th 19 at 11:50
1 answer
July 8th 19 at 11:52
to create the desired locale
/usr/lib/postgresql/9.5/bin/initdb -D /var/lib/postgresql/9.5/dbnew --locale=en_us.UTF-8

Find more questions by tags PostgreSQL