fix: #194 emojis not being displayed correctly
This commit is contained in:
parent
bddd16b8a8
commit
71aa1fe401
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue