Skip to content
Snippets Groups Projects
Commit 12024dbc authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #319165 by andpost: force PostgreSQL to use UTF-8 by default.

parent e2184e25
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,9 @@ public function __construct(array $connection_options = array()) {
// Force column names to lower case.
PDO::ATTR_CASE => PDO::CASE_LOWER,
));
// Force PostgreSQL to use the UTF-8 character set by default.
$this->exec('SET NAMES "UTF8"');
}
public function query($query, array $args = array(), $options = array()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment