Skip to content

Commit

Permalink
Make sure to use UTF-8 connection with MySQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
emaijala committed Nov 11, 2023
1 parent 4034dda commit 60ce12d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlfuncs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,7 @@ function getDb(): \Doctrine\DBAL\Connection
'password' => _DB_PASSWORD_,
'host' => _DB_SERVER_,
'driver' => 'pdo_mysql',
'charset' => 'utf8mb4',
];
return \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
}
Expand Down

0 comments on commit 60ce12d

Please sign in to comment.