diff --git a/app/Utils/TemplateEngine.php b/app/Utils/TemplateEngine.php index 49b77217b171..33ee07c3c212 100644 --- a/app/Utils/TemplateEngine.php +++ b/app/Utils/TemplateEngine.php @@ -127,7 +127,7 @@ class TemplateEngine $this->body = EmailTemplateDefaults::getDefaultTemplate($this->template, $this->settings_entity->locale()); } } - + return $this; } @@ -276,7 +276,7 @@ class TemplateEngine $documents['wrapper']->saveHTML(); $documents['body'] = new \DOMDocument(); - $documents['body']->loadHTML(empty($body) ? '
' : (new CssToInlineStyles())->convert($body, $styles)); + $documents['body']->loadHTML(empty($body) ? '
' : mb_convert_encoding((new CssToInlineStyles())->convert($body, $styles), 'HTML-ENTITIES', 'UTF-8')); $table_html ='