From c4c2d441220ba9ae21dfadfe2c1d01cceda3e559 Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 20 Mar 2025 13:06:13 +0800 Subject: [PATCH] + [misc] reset the encoding of database to utf8mb4 after reading it from my.php. --- config/config.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.php b/config/config.php index feca47b564..f4ab6c4315 100644 --- a/config/config.php +++ b/config/config.php @@ -270,3 +270,5 @@ else unset($config->maxVersion); unset($config->ipdVersion); } + +if(strtolower($config->db->encoding) == 'utf8') $config->db->encoding = 'utf8mb4';