<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Displaying HTML Entities in Magpie RSS</title>
	<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/</link>
	<description>A place for our creative musings on web-design, technology, and life.</description>
	<pubDate>Sat, 22 Nov 2008 03:09:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Matthew Carroll</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-16</link>
		<author>Matthew Carroll</author>
		<pubDate>Tue, 13 Feb 2007 02:54:16 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-16</guid>
					<description>This fix didn't work for me. What did, was defining the output encoding before loading Magpie, as follows:

&lt;code&gt;
define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
require('magpierss/rss_fetch.inc');
&lt;/code&gt;

Mapgie then spits out UTF-8 encoded characters, which can be converted to HTML entities quite easily, e.g.:

&lt;code&gt;
$output = htmlentities($output, ENT_QUOTES, "UTF-8");
&lt;/code&gt;

This solution doesn't require hacking the Magpie source.

Matthew</description>
		<content:encoded><![CDATA[<p>This fix didn&#8217;t work for me. What did, was defining the output encoding before loading Magpie, as follows:</p>
<p><code><br />
define(&#8217;MAGPIE_OUTPUT_ENCODING&#8217;, &#8216;UTF-8&#8242;);<br />
require(&#8217;magpierss/rss_fetch.inc&#8217;);<br />
</code></p>
<p>Mapgie then spits out UTF-8 encoded characters, which can be converted to HTML entities quite easily, e.g.:</p>
<p><code><br />
$output = htmlentities($output, ENT_QUOTES, &#8220;UTF-8&#8243;);<br />
</code></p>
<p>This solution doesn&#8217;t require hacking the Magpie source.</p>
<p>Matthew</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Tim Houghton</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-34</link>
		<author>Tim Houghton</author>
		<pubDate>Fri, 07 Sep 2007 21:30:10 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-34</guid>
					<description>Thanks Matthew! Your 'define' solution worked brilliantly for me (although I had to change the curly single quotes in your comment to straight single quotes, but I'm sure that was a result of the commenting system here and not your intention).</description>
		<content:encoded><![CDATA[<p>Thanks Matthew! Your &#8216;define&#8217; solution worked brilliantly for me (although I had to change the curly single quotes in your comment to straight single quotes, but I&#8217;m sure that was a result of the commenting system here and not your intention).</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Todd Kempf</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-35</link>
		<author>Todd Kempf</author>
		<pubDate>Tue, 09 Oct 2007 21:50:39 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-35</guid>
					<description>Matthew - thanks for your post you htmlentities call was exactly what I needed.....</description>
		<content:encoded><![CDATA[<p>Matthew - thanks for your post you htmlentities call was exactly what I needed&#8230;..</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-40</link>
		<author>Stuart</author>
		<pubDate>Mon, 14 Jan 2008 15:45:09 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-40</guid>
					<description>We have updated our page based on Matthew's tip with a few modifications. Hope it helps!</description>
		<content:encoded><![CDATA[<p>We have updated our page based on Matthew&#8217;s tip with a few modifications. Hope it helps!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-43</link>
		<author>Ian</author>
		<pubDate>Mon, 03 Mar 2008 16:53:03 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-43</guid>
					<description>Thank you very much for posting this...I believe you've just saved me a TON of time.</description>
		<content:encoded><![CDATA[<p>Thank you very much for posting this&#8230;I believe you&#8217;ve just saved me a TON of time.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Chris Kelley</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-44</link>
		<author>Chris Kelley</author>
		<pubDate>Tue, 18 Mar 2008 08:35:22 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-44</guid>
					<description>Excellent solution - worked perfectly, thanks for saving me the headache.</description>
		<content:encoded><![CDATA[<p>Excellent solution - worked perfectly, thanks for saving me the headache.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Konrad Burman</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-46</link>
		<author>Konrad Burman</author>
		<pubDate>Fri, 11 Apr 2008 05:55:11 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-46</guid>
					<description>Sweet, I was looking for exactly this solution! Thank you!</description>
		<content:encoded><![CDATA[<p>Sweet, I was looking for exactly this solution! Thank you!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Luis Mauricio</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-47</link>
		<author>Luis Mauricio</author>
		<pubDate>Sun, 13 Apr 2008 04:02:26 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-47</guid>
					<description>sweet and easy fix--thanks Nathan and Matthew!</description>
		<content:encoded><![CDATA[<p>sweet and easy fix&#8211;thanks Nathan and Matthew!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Cliff</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-48</link>
		<author>Cliff</author>
		<pubDate>Sun, 13 Apr 2008 18:51:15 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-48</guid>
					<description>Thanks man... it really did the job!</description>
		<content:encoded><![CDATA[<p>Thanks man&#8230; it really did the job!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Elmar</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-49</link>
		<author>Elmar</author>
		<pubDate>Sun, 20 Apr 2008 02:02:36 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-49</guid>
					<description>Thanks. Exactly what i needed ... after i realized, that magpierss was killing my german umlauts</description>
		<content:encoded><![CDATA[<p>Thanks. Exactly what i needed &#8230; after i realized, that magpierss was killing my german umlauts</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Hein</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-50</link>
		<author>Hein</author>
		<pubDate>Sun, 04 May 2008 17:11:38 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-50</guid>
					<description>Great work! Thanks!</description>
		<content:encoded><![CDATA[<p>Great work! Thanks!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: dev</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-51</link>
		<author>dev</author>
		<pubDate>Sat, 31 May 2008 11:11:13 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-51</guid>
					<description>thanks for the quick fix!</description>
		<content:encoded><![CDATA[<p>thanks for the quick fix!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Esther</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-53</link>
		<author>Esther</author>
		<pubDate>Tue, 12 Aug 2008 16:07:45 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-53</guid>
					<description>This worked for me too... Excellent!</description>
		<content:encoded><![CDATA[<p>This worked for me too&#8230; Excellent!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Arnau</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-58</link>
		<author>Arnau</author>
		<pubDate>Fri, 19 Sep 2008 16:40:52 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-58</guid>
					<description>Thank you! :)</description>
		<content:encoded><![CDATA[<p>Thank you! <img src='http://www.simplestation.com/journal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-60</link>
		<author>Simon</author>
		<pubDate>Sat, 27 Sep 2008 18:02:33 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-60</guid>
					<description>great thanks, worked for me</description>
		<content:encoded><![CDATA[<p>great thanks, worked for me</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Abed</title>
		<link>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-61</link>
		<author>Abed</author>
		<pubDate>Mon, 20 Oct 2008 17:02:26 +0000</pubDate>
		<guid>http://www.simplestation.com/journal/displaying-html-entities-in-magpie-rss/#comment-61</guid>
					<description>My thanks to Nathan &#38; Matthew. Precisely what I was looking for.</description>
		<content:encoded><![CDATA[<p>My thanks to Nathan &amp; Matthew. Precisely what I was looking for.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
