fix: #194 emojis not being displayed correctly

This commit is contained in:
Jay Trees 2024-04-12 15:17:11 +02:00
parent bddd16b8a8
commit 71aa1fe401

View file

@ -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);