Update README.md

Added ENCODING 'UTF8'; in the CREATE DATABASE statement for new installs of Postgres which may default to use ascii as the character set.
This commit is contained in:
shackrat 2022-08-18 00:55:42 -04:00 committed by GitHub
parent 71a93298f2
commit cf20291300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -102,9 +102,9 @@ git clone https://github.com/qvarforth/trackdirect
#### Set up database
Set up the database (connect to database using: "sudo -u postgres psql"). You need to replace "my_username".
Set up the database (connect to database using: "sudo -u postgres psql"). You need to replace "my_username". Note that APRS using UTF-8 encoding so it may be necessary to specify as shown.
```
CREATE DATABASE trackdirect;
CREATE DATABASE trackdirect ENCODING 'UTF8';
CREATE USER my_username WITH PASSWORD 'foobar';
ALTER ROLE my_username WITH SUPERUSER;