diff --git a/functions.inc.php b/functions.inc.php index 03bdfc74..fc234fbb 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1490,7 +1490,7 @@ function db_connect_with_errors() { if (!isset($CONF['database_port'])) { $CONF['database_port'] = '5432'; } - $dsn = "pgsql:host={$CONF['database_host']};port={$CONF['database_port']};dbname={$CONF['database_name']};charset=UTF8"; + $dsn = "pgsql:host={$CONF['database_host']};port={$CONF['database_port']};dbname={$CONF['database_name']};options='-c client_encoding=utf8'"; } else { die("

FATAL Error:
Invalid \$CONF['database_type']! Please fix your config.inc.php!

"); }