From 92d6259cd0f4f5b0833d19c2cbc5bd650b5c8d17 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sat, 9 Feb 2019 21:19:28 +0000 Subject: [PATCH] possibly fix PGSQL PDO DSN to be unicode aware; see #243 --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!

"); }