Fix charset of mysql queries to use proper utf8mb4 instead of the bad utf8 from mysql, this should allow unicode smiley in messages.
This commit is contained in:
parent
b325ae1a7e
commit
4430d95d40
|
@ -33,7 +33,7 @@
|
|||
* @param string $password : Le mot de passe à employer
|
||||
* @return mixed : Un objet \PDO ou false en cas d'erreur
|
||||
*/
|
||||
public static function _connect ($host, $dbname, $user, $password, ?string $charset = 'UTF8', ?array $options = null)
|
||||
public static function _connect ($host, $dbname, $user, $password, ?string $charset = 'utf8mb4', ?array $options = null)
|
||||
{
|
||||
$options = $options ?? [
|
||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||
|
|
Loading…
Reference in New Issue