Update mysql.class.php

Full UTF-8 support.
Update MySQL plugin and web UI to allow storage and display of emojis.
This commit is contained in:
PeterLaemmle 2019-12-29 12:40:56 +01:00 committed by GitHub
parent 219eb34322
commit 7d67bd87ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,10 @@ Simple Database Class (C) by Bastian Schroll
$this->error("Datenbank nicht gefunden!", mysqli_error($this->conn)); $this->error("Datenbank nicht gefunden!", mysqli_error($this->conn));
return false; return false;
} }
/* Set character set for database connection to utf8mb4 */
mysqli_query($this->conn, "SET NAMES 'utf8mb4'");
return true; return true;
} }