Localization VPS ubuntu for support cyrillic in postgresql

For support Cyrillic need to generate UTF-8 support using the command:

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

Check the generated encoding can be done by typing the command:
locale
An example isn't correct

Example correct

After this manipulation we need to delete all Postgresql modules and install her again:
  • sudo apt-get --purge remove postgresql-*
  • sudo rm -Rf /etc/postgresql /var/lib/postgresql
  • sudo apt-get install postgresql

Comments

  1. Ось непогана стаття як правильно налаштувати базу даних та юзера для неї https://www.8host.com/blog/django-prilozhenie-na-postgresql-v-debian-8/

    ReplyDelete

Post a Comment