From 5b44fd46aa6b976f017128c927096000e5fa21a7 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 26 Aug 2018 18:54:20 +0200 Subject: [PATCH] Bug 4504. utf-8 decoding not working for some special characters on pdf reports. @Braathwaate. --- reporting/includes/tcpdf.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ---------------------------------- -- 2.30.2