浏览代码

Fix for Russian Encoding in Front End JS https://www.py4u.net/discuss/24230 Answer #2

own3mall 4 年之前
父节点
当前提交
041c7aa433
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      includes/functions.php

+ 1 - 1
includes/functions.php

@@ -847,7 +847,7 @@ function utf8ize($d, $htmlEntities = true) {
 		if($htmlEntities){
 			$d = htmlentities($d);
 		}
-        return utf8_encode($d);
+        return mb_convert_encoding($d, "UTF-8", "UTF-8");
     }
     return $d;
 }