I need to create a data base in PostgreSQL:
Code:
createdb -U dspace -E UNICODE dspace
createdb: database creation failed: ERROR: encoding "UTF8" does not match locale "en_US"
DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".
I have the system locale set
Code:
locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Trying
Code:
export LC_CTYPE="LATIN1"
didn't do diddly squat and neither has anything else I've fiddled with (in
/etc/profile.d/lang.sh, I have
Code:
export LANG=en_US.UTF-8
and
export LC_COLLATE=C
defined, nothing else).
Anybody got any ideas how to get the PostgreSQL data base created with the required encoding?