From 675e211e337815fef7a0cefb70a22baec029f6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gayot?= Date: Sat, 17 Oct 2020 02:24:02 +0200 Subject: [PATCH] Support PDF variables with UTF-8 characters --- app/Services/PdfMaker/PdfMakerUtilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PdfMaker/PdfMakerUtilities.php b/app/Services/PdfMaker/PdfMakerUtilities.php index 2078c16b6b15..8ffe05594295 100644 --- a/app/Services/PdfMaker/PdfMakerUtilities.php +++ b/app/Services/PdfMaker/PdfMakerUtilities.php @@ -161,7 +161,7 @@ trait PdfMakerUtilities $html = strtr($html, $variables['values']); - @$this->document->loadHTML($html); + @$this->document->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8')); $this->document->saveHTML(); }