安装编码选择修复

feat/task1-c-wallet
gongfuxiang 2019-01-19 14:30:56 +08:00
parent f27b7b61ad
commit e10a4b63af
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}