From 0ce81ef49ca9088a5b00f80880027f68b312019a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Car=C3=ADsio?= Date: Wed, 8 Mar 2017 11:05:58 -0300 Subject: [PATCH] Patch for issue #2499 --- e107_handlers/e_parse_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('%(?: