Support PDF variables with UTF-8 characters

This commit is contained in:
Clément Gayot 2020-10-17 02:24:02 +02:00 committed by GitHub
parent 2e233a6437
commit 675e211e33
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']); $html = strtr($html, $variables['values']);
@$this->document->loadHTML($html); @$this->document->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'));
$this->document->saveHTML(); $this->document->saveHTML();
} }