bug #4936 utf8mb4 fields show only ????s for 4-byte Unicode characters after import

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2015-06-02 15:20:18 +05:30
parent caacfa283e
commit d6d016aef9

View File

@ -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