Fix #185: Document that the database should use an utf-8 encoding

merge-requests/180/head
Eliot Berriot 2018-04-27 18:28:44 +02:00
rodzic 99ff8169fc
commit a79f42b0ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1 @@
Document that the database should use an utf-8 encoding (#185)

Wyświetl plik

@ -32,13 +32,22 @@ Create the project database and user:
.. code-block:: shell
CREATE DATABASE funkwhale;
CREATE DATABASE "scratch"
WITH ENCODING 'utf8'
LC_COLLATE = 'en_US.utf8'
LC_CTYPE = 'en_US.utf8';
CREATE USER funkwhale;
GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale;
Assuming you already have :ref:`created your funkwhale user <create-funkwhale-user>`,
you should now be able to open a postgresql shell:
.. warning::
It's importing that you use utf-8 encoding for your database,
otherwise you'll end up with errors and crashes later on when dealing
with music metedata that contains non-ascii chars.
.. code-block:: shell
sudo -u funkwhale -H psql