From a8513581abb9a590189edc71af7f32de7b5367a3 Mon Sep 17 00:00:00 2001 From: Serios Date: Fri, 26 Feb 2016 02:03:49 +0200 Subject: [PATCH] Propper fix for #1362 Should work now with both latin and non latin characters --- e107_handlers/e_parse_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index a8cddcc6b..f36a092a0 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -4141,7 +4141,9 @@ return; // libxml_use_internal_errors(true); // hides errors. $doc = $this->domObj; libxml_use_internal_errors(true); - @$doc->loadHTML($html); + // @$doc->loadHTML($html); + $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); + @$doc->loadHTML($html); // $doc->encoding = 'UTF-8'; // $doc->resolveExternals = true;