From 7bb7e7424c376e5fec5fabd0730d7cd4c123c679 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 18 Oct 2007 07:31:21 +0000 Subject: [PATCH] PHP 5 supports specifying output charset for html_entities_decode() --- libraries/tcpdf/tcpdf.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/tcpdf/tcpdf.php b/libraries/tcpdf/tcpdf.php index 3173c6df6..de574bd58 100644 --- a/libraries/tcpdf/tcpdf.php +++ b/libraries/tcpdf/tcpdf.php @@ -4120,8 +4120,13 @@ if(!class_exists('TCPDF')) { * @return string converted */ function unhtmlentities($text_to_convert) { + /** + * PHP 5 supports specifying charset + * cybot_tm 2007-10-18 require_once(dirname(__FILE__).'/html_entity_decode_php4.php'); return html_entity_decode_php4($text_to_convert); + */ + return html_entity_decode($text_to_convert, ENT_QUOTES, 'UTF-8'); } } // END OF CLASS