mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-05 22:36:26 +02:00
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
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
v3.1.0
|
v3.1.1
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
* @param string $password : Le mot de passe à employer
|
* @param string $password : Le mot de passe à employer
|
||||||
* @return mixed : Un objet \PDO ou false en cas d'erreur
|
* @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 ?? [
|
$options = $options ?? [
|
||||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue