From d6d016aef9cb109f3d1fb545a96ccb759bd9c34e Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Tue, 2 Jun 2015 15:20:18 +0530 Subject: [PATCH] bug #4936 utf8mb4 fields show only ????s for 4-byte Unicode characters after import Signed-off-by: Madhura Jayaratne --- libraries/plugins/export/ExportSql.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/plugins/export/ExportSql.class.php b/libraries/plugins/export/ExportSql.class.php index 629949adb1..eb335f3d83 100644 --- a/libraries/plugins/export/ExportSql.class.php +++ b/libraries/plugins/export/ExportSql.class.php @@ -737,6 +737,9 @@ class ExportSql extends ExportPlugin // by default we use the connection charset $set_names = $mysql_charset_map['utf-8']; } + if ($set_names == 'utf8' && PMA_MYSQL_INT_VERSION > 50503) { + $set_names = 'utf8mb4'; + } $head .= $crlf . '/*!40101 SET @OLD_CHARACTER_SET_CLIENT=' . '@@CHARACTER_SET_CLIENT */;' . $crlf