I want to create a New Database that will store data in German(i.e Text with accents etc). Hence I tried to create it using the following SQL:
CREATE DATABASE testdb
WITH ENCODING='LATIN1'
OWNER=postgres
TEMPLATE=template0
CONNECTION LIMIT=-1;
When I run this on my Windows Development machine, I get the following error message:
ERROR: encoding "LATIN1" does not match locale "English_United States.1252" DETAIL: The chosen LC_CTYPE setting requires encoding "WIN1252".
On my Linux server, I get the following error message:
ERROR: encoding "LATIN1" does not match locale "en_US.UTF-8" DETAIL: The chosen LC_CTYPE setting requires encoding "UTF8".
What do I need to do to create a Database which can correctly store German text?
de_DE.UTF-8