From 92413a48bc2c622de932cb738fd54acbd72e7a6f Mon Sep 17 00:00:00 2001 From: yhwphp Date: Tue, 16 May 2017 18:46:22 +0800 Subject: [PATCH] friendly to emoji --- dumper.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dumper.php b/dumper.php index e2a09dc..dca97c7 100644 --- a/dumper.php +++ b/dumper.php @@ -399,6 +399,11 @@ function connect() { if (!$select_db_res) { throw new Shuttle_Exception("Couldn't select database: " . mysql_error($this->connection)); } + + /* + // if data with emoji + mysql_query("set names utf8mb4"); + */ return true; } @@ -457,6 +462,10 @@ function connect() { if ($this->connection->connect_error) { throw new Shuttle_Exception("Couldn't connect to the database: " . $this->connection->connect_error); } + /* + // if data with emoji + $this->connection->query("set names utf8mb4"); + */ return true; }