Skip to content

Commit

Permalink
utf-8 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ABDELMOUMEN-MUSTAFA committed Dec 28, 2022
1 parent 438aa70 commit d4c7459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/libraries/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function model($model)
{
// DataBase Connection
try {
$db = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS);
$db = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME.";charset=utf8mb4", DB_USER, DB_PASS);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
die('Erreur : ' . $e->getMessage());
Expand Down

0 comments on commit d4c7459

Please sign in to comment.