diff --git a/src/Database/Db.php b/src/Database/Db.php index 3b4648d439..611517ed38 100644 --- a/src/Database/Db.php +++ b/src/Database/Db.php @@ -47,7 +47,8 @@ public static function connect(array|null $params = null): Database 'password' => Config::get('db.password', ''), 'database' => Config::get('db.database', ''), 'prefix' => Config::get('db.prefix', ''), - 'port' => Config::get('db.port', '') + 'port' => Config::get('db.port', ''), + 'charset' => Config::get('db.charset', 'utf8mb4') ]; return static::$connection = new Database($params);