Support PDF design with UTF-8 characters

This commit is contained in:
Clément Gayot 2020-11-03 16:18:07 +01:00 committed by GitHub
parent 552ac4ee8f
commit 92b4df729b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);