diff options
author | Phil Davis <phil.davis@inf.org> | 2015-02-02 08:25:36 +0545 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-02-02 05:54:28 -0200 |
commit | 87549136ccf9fe978619d087d5589e15ff8f2712 (patch) | |
tree | 71e2e6f3dc0172d3af6a7a451ee09aa8d036c222 | |
parent | 63072a7fe64f5be7cfe3644be6fee69cc9e5972d (diff) | |
download | pfsense-87549136ccf9fe978619d087d5589e15ff8f2712.zip pfsense-87549136ccf9fe978619d087d5589e15ff8f2712.tar.gz |
Remove latin-1 encoding of RSS feed
Many thanks to Gertjan in forum https://forum.pfsense.org/index.php?topic=87504.msg484017#msg484017
Specifically setting the output encoding to latin-1 was causing the "black diamonds" for special characters in the http://blog.pfsense.org RSS feed (e.g. the registered trademark sign after pfSense did not come out).
It should all work by letting simplepie do its default stuff with the RSS feed.
-rw-r--r-- | usr/local/www/widgets/widgets/rss.widget.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/rss.widget.php b/usr/local/www/widgets/widgets/rss.widget.php index c6920f9..4c21a29 100644 --- a/usr/local/www/widgets/widgets/rss.widget.php +++ b/usr/local/www/widgets/widgets/rss.widget.php @@ -157,7 +157,6 @@ else $feed->set_cache_location("/tmp/simplepie/"); $feed->set_feed_url($rss_feed_s); $feed->init(); - $feed->set_output_encoding('latin-1'); $feed->handle_content_type(); $counter = 1; foreach($feed->get_items() as $item) { |