Skip to content

Commit

Permalink
Set default charset to utf8mb4
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Sep 22, 2023
1 parent 3854f25 commit 33dfa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ require_once __DIR__ . '/config/bootstrap.php';

// Get PDO object
$pdo = new PDO(
'mysql:host=127.0.0.1;dbname=test;charset=utf8', 'root', '',
'mysql:host=127.0.0.1;dbname=test;charset=utf8mb4', 'root', '',
array(
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_PERSISTENT => false,
Expand Down

0 comments on commit 33dfa04

Please sign in to comment.