Remove utf8_encode call

This commit is contained in:
Dave Umrysh 2023-12-31 18:16:03 +00:00
parent 754b5a33d5
commit 8c97e5cdd2

View File

@ -259,7 +259,8 @@ class TemplateProcessor
protected static function ensureUtf8Encoded($subject) protected static function ensureUtf8Encoded($subject)
{ {
if (!Text::isUTF8($subject)) { if (!Text::isUTF8($subject)) {
$subject = utf8_encode($subject); //$subject = utf8_encode($subject);
$subject = mb_convert_encoding($subject, 'UTF-8', 'ISO-8859-1');
} }
return $subject; return $subject;