From 4cf9119a7dfd8b8a45344dff4d884a445dcb5a5a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 23 Aug 2013 21:59:44 +0200 Subject: [PATCH] UTF-8 encoding bug on PHP older than 5.4 In PHP older than 5.4.0, the default charset for htmlspecialchars() and html_entity_decode() was ISO-8859-1, which created erroneous UTF-8 characters --- app/views/helpers/view/rss_view.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/helpers/view/rss_view.phtml b/app/views/helpers/view/rss_view.phtml index 83de6de2e..8ce636918 100755 --- a/app/views/helpers/view/rss_view.phtml +++ b/app/views/helpers/view/rss_view.phtml @@ -12,7 +12,7 @@ $items = $this->entryPaginator->items (); foreach ($items as $item) { ?> - <?php echo htmlspecialchars(html_entity_decode($item->title ())); ?> + <?php echo htmlspecialchars(html_entity_decode($item->title (), ENT_NOQUOTES, 'UTF-8'), ENT_NOQUOTES, 'UTF-8'); ?> link (); ?> author (); ?>