From 60ce12dc193df12eca9ff6c0eab22a1b9b7039df Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Sat, 11 Nov 2023 23:07:54 +0200 Subject: [PATCH] Make sure to use UTF-8 connection with MySQL. --- sqlfuncs.php | 1 + 1 file changed, 1 insertion(+) diff --git a/sqlfuncs.php b/sqlfuncs.php index a756549b..936209db 100755 --- a/sqlfuncs.php +++ b/sqlfuncs.php @@ -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); }