possibly fix PGSQL PDO DSN to be unicode aware; see #243

pull/245/head
David Goodwin 5 years ago
parent 76e30d1dd3
commit 92d6259cd0

@ -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("<p style='color: red'>FATAL Error:<br />Invalid \$CONF['database_type']! Please fix your config.inc.php!</p>");
}

Loading…
Cancel
Save