From: Joe Hunt Date: Sun, 26 Aug 2018 16:54:20 +0000 (+0200) Subject: Bug 4504. utf-8 decoding not working for some special characters on pdf reports.... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=5b44fd46aa6b976f017128c927096000e5fa21a7 Bug 4504. utf-8 decoding not working for some special characters on pdf reports. @Braathwaate. --- diff --git a/reporting/includes/tcpdf.php b/reporting/includes/tcpdf.php index 139dea60..c2140575 100644 --- a/reporting/includes/tcpdf.php +++ b/reporting/includes/tcpdf.php @@ -5731,10 +5731,7 @@ if (!class_exists('TCPDF')) { * @return string converted */ function unhtmlentities($text_to_convert) { - if (!$this->isunicode) { - return html_entity_decode($text_to_convert, ENT_QUOTES); - } - return html_entity_decode_php4($text_to_convert); + return html_entity_decode($text_to_convert, ENT_QUOTES, $this->encoding); } // ENCRYPTION METHODS ----------------------------------