From e10a4b63afbcc51a897757ced7f6d036e22758b2 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sat, 19 Jan 2019 14:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E7=BC=96=E7=A0=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/install/controller/Index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/install/controller/Index.php b/application/install/controller/Index.php index 9852dde8d..872f16900 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); }