From f6d52d271e0f1914d91c68eee6db3f3b6a1a8bfe Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 29 Mar 2012 17:10:04 -0400 Subject: [PATCH] CC-3557: Airtime database install should specify UTF8 as the database encoding --- install_minimal/include/AirtimeInstall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_minimal/include/AirtimeInstall.php b/install_minimal/include/AirtimeInstall.php index dc5869165..6cd5cc8fa 100644 --- a/install_minimal/include/AirtimeInstall.php +++ b/install_minimal/include/AirtimeInstall.php @@ -209,7 +209,7 @@ class AirtimeInstall $database = $CC_CONFIG['dsn']['database']; $username = $CC_CONFIG['dsn']['username']; #$command = "echo \"CREATE DATABASE $database OWNER $username\" | su postgres -c psql 2>/dev/null"; - $command = "su postgres -c \"createdb $database --owner $username\""; + $command = "su postgres -c \"createdb $database --encoding UTF8 --owner $username\""; @exec($command, $output, $results); if ($results == 0) {