From 92b4df729b8f428259f01c1b1c04697b504e6bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gayot?= Date: Tue, 3 Nov 2020 16:18:07 +0100 Subject: [PATCH] Support PDF design 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 02664812d1ed..484ac181d61d 100644 --- a/app/Services/PdfMaker/PdfMakerUtilities.php +++ b/app/Services/PdfMaker/PdfMakerUtilities.php @@ -22,7 +22,7 @@ trait PdfMakerUtilities $document = new DOMDocument(); $document->validateOnParse = true; - @$document->loadHTML($this->design->html()); + @$document->loadHTML(mb_convert_encoding($this->design->html(), 'HTML-ENTITIES', 'UTF-8')); $this->document = $document; $this->xpath = new DOMXPath($document);