diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index a713303f7..488f64a17 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -4161,9 +4161,9 @@ class e_parser */ public function isUTF8($string) { - if (function_exists('mb_detect_encoding')) + if (function_exists('mb_check_encoding')) { - return (mb_detect_encoding($string) == "UTF-8"); + return (mb_check_encoding($string, 'UTF-8')); } return (bool) preg_match('%(?: