From 889dd7829614ed5973cb1d0df95143b6064f36dc Mon Sep 17 00:00:00 2001 From: Davide Cesarano Date: Thu, 6 Apr 2017 12:00:42 +0200 Subject: [PATCH] Aggiunta codifica utf8mb4 in Helpers\Database --- app/helpers/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/Database.php b/app/helpers/Database.php index db58ff7..15b9043 100644 --- a/app/helpers/Database.php +++ b/app/helpers/Database.php @@ -47,7 +47,7 @@ public function __construct($config_name){ $name = $database['name']; $user = $database['user']; $password = $database['password']; - $dsn = $engine.':dbname='.$name.";host=".$host.";charset=utf8mb4"; + $dsn = $engine.':dbname='.$name.";host=".$host.";charset=utf8mb4"; $options = array( PDO::ATTR_PERSISTENT => true, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION