From 71aa1fe40118f6f7333549a265502e715f964eee Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Fri, 12 Apr 2024 15:17:11 +0200 Subject: [PATCH] fix: #194 emojis not being displayed correctly --- src/classes/wishthis/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/wishthis/Database.php b/src/classes/wishthis/Database.php index 9681b8c7..68169146 100644 --- a/src/classes/wishthis/Database.php +++ b/src/classes/wishthis/Database.php @@ -32,7 +32,7 @@ class Database public function connect(): void { - $dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->database . ';port=3306;charset=utf8'; + $dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->database . ';port=3306;charset=utf8mb4'; $options = array('placeholders' => array()); $this->pdo = new \PDO($dsn, $this->user, $this->password, $options);