From efc020919f20e6f8a03ac86533a58da10899a4f9 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Tue, 10 Jun 2025 13:55:14 +0800 Subject: [PATCH] fix 3 --- application/controllers/cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/cache.php b/application/controllers/cache.php index eb5b1201..0d152b9d 100644 --- a/application/controllers/cache.php +++ b/application/controllers/cache.php @@ -158,9 +158,9 @@ class Cache extends CI_Controller { $url_temp = str_replace('/index.htm', '/', $url_temp); $file_time[$url_temp] = date("F d Y H:i:s", filemtime("$dir/$f")); - $encode = mb_detect_encoding($url_temp, ['ASCII', 'GBK', 'ISO-8859-1', 'UTF-8']); + $encode = mb_detect_encoding($url_temp); // $_url_temp = mb_convert_encoding($url_temp, 'UTF8', $encode); - $_url_temp = mb_convert_encoding($url_temp, 'UTF-8', 'GBK') . '?encoding=' . $encode; + $_url_temp = mb_convert_encoding($url_temp, 'UTF-8', $encode) . '?encoding=' . $encode; $file[] = $_url_temp; }