diff --git a/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php b/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php index 113682f..0d1e01a 100755 --- a/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php +++ b/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php @@ -259,7 +259,8 @@ class TemplateProcessor protected static function ensureUtf8Encoded($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;