diff --git a/application/install/controller/Index.php b/application/install/controller/Index.php index 9852dde8d61202217f9b03b3669453501b50274f..872f16900e628db3f7ac24d48f30f2b4e929b6fd 100644 --- a/application/install/controller/Index.php +++ b/application/install/controller/Index.php @@ -333,6 +333,7 @@ php; $charset = $this->charset_type_list[$params['DB_CHARSET']]; if($charset['charset'] != 'utf8mb4') { + $sql = str_replace('SET NAMES utf8mb4;', "SET NAMES {$charset['charset']};", $sql); $sql = str_replace('CHARSET=utf8mb4', "CHARSET={$charset['charset']}", $sql); $sql = str_replace('utf8mb4_general_ci', "{$charset['collate']}", $sql); }