Merge pull request #4175 from Striffly/patch-2

Support PDF variables with UTF-8 characters
This commit is contained in:
David Bomba 2020-10-17 16:02:36 +11:00 committed by GitHub
commit f1042b1079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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