1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Propper fix for #1362

Should work now with both latin and non latin characters
This commit is contained in:
Serios 2016-02-26 02:03:49 +02:00
parent 12a2084cbb
commit a8513581ab

View File

@ -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;