Merge pull request #4258 from Striffly/patch-3

Support PDF design with UTF-8 characters
This commit is contained in:
David Bomba 2020-11-04 07:17:13 +11:00 committed by GitHub
commit e3357b52f5
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);