Unicode in PostgreSQL 8.4

Posted by user8382 on Ask Ubuntu See other posts from Ask Ubuntu or by user8382
Published on 2011-01-10T11:43:29Z Indexed on 2011/01/10 11:58 UTC
Read the original article Hit count: 158

Filed under:

I installed the "postgresql-8.4" package with default options. Everything worked fine, however I can't seem to manage to create unicode databases:

-- This doesn't work
createdb test1 --encoding UNICODE

-- This works
createdb test2

The error message "createdb: database creation failed: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)" is a bit puzzling because (afaik) I don't use a template for creating the new db, or is it implicitely referring to the default "postgres" database for some reason ?

Or maybe I'm missing a setting in a .conf file ?

© Ask Ubuntu or respective owner

Related posts about postgresql-8.4