Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
update db charset
Browse files Browse the repository at this point in the history
  • Loading branch information
Fauxil-Fox committed Feb 21, 2024
1 parent f12af94 commit bda6974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected static function init(): void {
return;
}
self::$dbh = new PDO("mysql:host=" . Secrets::get("DB_HOST") . ";port="
. Secrets::get("DB_PORT") . ";dbname=" . Secrets::get("DB_NAME") . ";charset=utf8mb4", Secrets::get("DB_USER"), Secrets::get("DB_PASS"));
. Secrets::get("DB_PORT") . ";dbname=" . Secrets::get("DB_NAME"), Secrets::get("DB_USER"), Secrets::get("DB_PASS"));

foreach (self::getPdoAttributes() as $attr => $value) {
self::$dbh->setAttribute($attr, $value);
Expand Down

0 comments on commit bda6974

Please sign in to comment.