From 7ee5b7fc5f768dfa1a11a1bbc5c234bb01ae3833 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 10 Jan 2015 18:25:30 +0100 Subject: [PATCH] create databases with UTF8 encoding --- gvapgsql/pgsqltasks/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gvapgsql/pgsqltasks/tasks.py b/gvapgsql/pgsqltasks/tasks.py index 1683ff5..7e70157 100644 --- a/gvapgsql/pgsqltasks/tasks.py +++ b/gvapgsql/pgsqltasks/tasks.py @@ -140,6 +140,7 @@ def create_pgsql_database(dbname, username): curs.execute( """ CREATE DATABASE %(dbname)s OWNER %(username)s + TEMPLATE template0 ENCODING UTF8 """, {'dbname': Ident(dbname), 'username': Ident(username)} )