From 0c0c5c613aeeab55288d1e9aa3baeb4b1585eed4 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Sat, 13 Jan 2018 09:54:08 +0100 Subject: [PATCH] Fix parziale #111 Fix del problema segnalato nell'issue #111, attraverso l'impostazione della codifica di MPDF a utf-8. --- gulpfile.js | 2 ++ pdfgen.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 7291af24a..d93a314c5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -255,6 +255,8 @@ gulp.task('release', function () { '!./vendor/tecnickcom/tcpdf/fonts/*helvetica*', './vendor/mpdf/mpdf/tmp/*', './vendor/mpdf/mpdf/ttfonts/*', + '!./vendor/mpdf/mpdf/ttfonts/DejaVuinfo.txt', + '!./vendor/mpdf/mpdf/ttfonts/DejaVu*Condensed*', './vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/*', ]); diff --git a/pdfgen.php b/pdfgen.php index 4c4a6bb07..51611d721 100644 --- a/pdfgen.php +++ b/pdfgen.php @@ -158,7 +158,7 @@ if (!$old_format) { // Instanziamento dell'oggetto mPDF $mpdf = new \Mpdf\Mpdf([ - 'mode' => 'c', + 'mode' => 'utf-8', 'format' => $settings['format'], 'orientation' => $settings['orientation'], 'font-size' => $settings['font-size'],