From 711e9aae194644d793560dd54d17247e2d6a54c5 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Tue, 8 Dec 2020 14:35:50 +0800 Subject: [PATCH] +2 --- application/controllers/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/cache.php b/application/controllers/cache.php index fe4522a1..8bc7cbde 100644 --- a/application/controllers/cache.php +++ b/application/controllers/cache.php @@ -151,7 +151,7 @@ class Cache extends CI_Controller { if ($f!='.' && $f!='..' && (strpos($dir, '/cn/')===false) && (strpos($dir, '/amp/')===false) && (strpos($f, '.pdf')===false)) { - $encode = mb_detect_encoding($f, array("Western","ASCII",'UTF-8',"GB2312","GBK",'BIG5')); + $encode = mb_detect_encoding($f, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5')); $_f = mb_convert_encoding ($f, 'UTF-8', 'GBK'); $_dir = mb_convert_encoding ($dir, 'UTF-8', 'GBK');