<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.7" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: use.perl journals and full text feeds</title>
	<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/</link>
	<description>It'll all be over in 60 days</description>
	<pubDate>Thu, 28 Aug 2008 02:14:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>

	<item>
		<title>by: pligg.com</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-16660</link>
		<pubDate>Fri, 20 Apr 2007 07:54:13 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-16660</guid>
					<description>&lt;strong&gt;Plagger configuration that shows how to create new feed metadata...&lt;/strong&gt;

Plagger provides great flexibility when processing feeds.  This example shows how to create a new feed by scraping an existing web site, and post-processing the scraped HTML to upgrade content in the HTML in to metadata in the feed....</description>
		<content:encoded><![CDATA[<p><strong>Plagger configuration that shows how to create new feed metadata&#8230;</strong></p>
<p>Plagger provides great flexibility when processing feeds.  This example shows how to create a new feed by scraping an existing web site, and post-processing the scraped HTML to upgrade content in the HTML in to metadata in the feed&#8230;.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matthew Wilson</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-1014</link>
		<pubDate>Thu, 07 Dec 2006 16:04:58 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-1014</guid>
					<description>I don't see this happening on other feeds in Google Reader (although that doesn't prove it's not a Reader bug of course).</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see this happening on other feeds in Google Reader (although that doesn&#8217;t prove it&#8217;s not a Reader bug of course).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tatsuhiko Miyagawa</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-1000</link>
		<pubDate>Wed, 06 Dec 2006 22:22:12 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-1000</guid>
					<description>OK here is my response:

http://groups.google.com/group/plagger-dev/browse_thread/thread/edbc2c7e4a6e5793/9199bb028256c64e#9199bb028256c64e

Summary: double encoding apos here is syntactically correct because we're embedding HTML into XML, if not the most desired.

Let me say this is not a bug of Plagger, but it's a problem with the RSS feed itself, since RSS elements don't have a good way to express it's plaintext or HTML marked up (while Atom feed does). And as far as I tested the feed worked fine with Thunderbird and Bloglines, so I suspect it's a Google Reader bug.</description>
		<content:encoded><![CDATA[<p>OK here is my response:</p>
<p><a href="http://groups.google.com/group/plagger-dev/browse_thread/thread/edbc2c7e4a6e5793/9199bb028256c64e#9199bb028256c64e" rel="nofollow">http://groups.google.com/group/plagger-dev/browse_thread/thread/edbc2c7e4a6e5793/9199bb028256c64e#9199bb028256c64e</a></p>
<p>Summary: double encoding apos here is syntactically correct because we&#8217;re embedding HTML into XML, if not the most desired.</p>
<p>Let me say this is not a bug of Plagger, but it&#8217;s a problem with the RSS feed itself, since RSS elements don&#8217;t have a good way to express it&#8217;s plaintext or HTML marked up (while Atom feed does). And as far as I tested the feed worked fine with Thunderbird and Bloglines, so I suspect it&#8217;s a Google Reader bug.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: nik</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-993</link>
		<pubDate>Wed, 06 Dec 2006 17:21:27 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-993</guid>
					<description>Ah, yes, it does look like it's being double-encoded.  This might be due to the encoding by Plagger, and then a subsequent set of encoding by XML::RSS (which is eventually called to write the .rss file, called by XML::Feed).</description>
		<content:encoded><![CDATA[<p>Ah, yes, it does look like it&#8217;s being double-encoded.  This might be due to the encoding by Plagger, and then a subsequent set of encoding by XML::RSS (which is eventually called to write the .rss file, called by XML::Feed).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matthew Wilson</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-992</link>
		<pubDate>Wed, 06 Dec 2006 16:18:15 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-992</guid>
					<description>Nothing wrong with encoding it once, an HTML "&#38;apos;" and an apostrophe are the same. But it looks like it's getting encoded twice - view source on the RSS shows &#38;amp;apos. But I don't know how all this stuff is dealt with in RSS.</description>
		<content:encoded><![CDATA[<p>Nothing wrong with encoding it once, an HTML &#8220;&amp;apos;&#8221; and an apostrophe are the same. But it looks like it&#8217;s getting encoded twice - view source on the RSS shows &amp;amp;apos. But I don&#8217;t know how all this stuff is dealt with in RSS.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: broquaint</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-989</link>
		<pubDate>Wed, 06 Dec 2006 15:08:24 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-989</guid>
					<description>This is marvellous; well done, nik! I'm also experiencing ill-escaped character codes, so I knocked together this shonky GreaseMonkey script to straighten'em out:

=UserScript==
// @name          Google Reader use Perl subscription fixer.
// @namespace     http://danvsdan.com
// @description   Currently the escape sequences are little broken, this fixes them.
// @include       http://www.google.com/reader/view/*
// ==/UserScript==

function fix_escapes(evt) {
  // Possibly cache this if possible.
  if(!document.getElementById('chrome-stream-title').innerHTML.match(/use Perl - Journals/))
    return;
  var node = evt.relatedNode;
  if(node.innerHTML.match(/&#38;([a-z]+;)/))
    node.innerHTML = node.innerHTML.replace(/&#38;([a-z]+;)/g, "&#38;$1");
}

document.getElementById('chrome').addEventListener('DOMNodeInserted', fix_escapes, false);</description>
		<content:encoded><![CDATA[<p>This is marvellous; well done, nik! I&#8217;m also experiencing ill-escaped character codes, so I knocked together this shonky GreaseMonkey script to straighten&#8217;em out:</p>
<p>=UserScript==<br />
// @name          Google Reader use Perl subscription fixer.<br />
// @namespace     <a href="http://danvsdan.com" rel="nofollow">http://danvsdan.com</a><br />
// @description   Currently the escape sequences are little broken, this fixes them.<br />
// @include       <a href="http://www.google.com/reader/view/" rel="nofollow">http://www.google.com/reader/view/</a>*<br />
// ==/UserScript==</p>
<p>function fix_escapes(evt) {<br />
  // Possibly cache this if possible.<br />
  if(!document.getElementById(&#8217;chrome-stream-title&#8217;).innerHTML.match(/use Perl - Journals/))<br />
    return;<br />
  var node = evt.relatedNode;<br />
  if(node.innerHTML.match(/&amp;([a-z]+;)/))<br />
    node.innerHTML = node.innerHTML.replace(/&amp;([a-z]+;)/g, &#8220;&amp;$1&#8243;);<br />
}</p>
<p>document.getElementById(&#8217;chrome&#8217;).addEventListener(&#8217;DOMNodeInserted&#8217;, fix_escapes, false);
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: nik</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-988</link>
		<pubDate>Wed, 06 Dec 2006 14:26:12 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-988</guid>
					<description>This is something in Plagger.  More specifically, in &lt;a href="http://plagger.org/trac/browser/trunk/plagger/lib/Plagger/Util.pm" rel="nofollow"&gt;Plagger::Util&lt;/a&gt;, around line &lt;a href="http://plagger.org/trac/browser/trunk/plagger/lib/Plagger/Util.pm#L176" rel="nofollow"&gt;176&lt;/a&gt;, the apostrophe is listed as one of the special characters that is automatically encoded to the entity.

I'm not sure why it's there.  Possibly as defensive code against SQL injection attacks or similar.  Googling for "apos" is instructive, and suggests that the numeric entity should really be used instead.  I'll bring this up with Miyagawa-san.</description>
		<content:encoded><![CDATA[<p>This is something in Plagger.  More specifically, in <a href="http://plagger.org/trac/browser/trunk/plagger/lib/Plagger/Util.pm" rel="nofollow">Plagger::Util</a>, around line <a href="http://plagger.org/trac/browser/trunk/plagger/lib/Plagger/Util.pm#L176" rel="nofollow">176</a>, the apostrophe is listed as one of the special characters that is automatically encoded to the entity.</p>
<p>I&#8217;m not sure why it&#8217;s there.  Possibly as defensive code against SQL injection attacks or similar.  Googling for &#8220;apos&#8221; is instructive, and suggests that the numeric entity should really be used instead.  I&#8217;ll bring this up with Miyagawa-san.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matthew Wilson</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-986</link>
		<pubDate>Wed, 06 Dec 2006 13:00:04 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-986</guid>
					<description>Looks like I can't spell ampersand either.

Let's try again: I'm seeing &#38;apos; instead of '.</description>
		<content:encoded><![CDATA[<p>Looks like I can&#8217;t spell ampersand either.</p>
<p>Let&#8217;s try again: I&#8217;m seeing &amp;apos; instead of &#8216;.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matthew Wilson</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-983</link>
		<pubDate>Wed, 06 Dec 2006 11:57:24 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-983</guid>
					<description>Thanks!

When I subscribe in Google Reader though, I'm seeing lots of "&apos;" (in case the comments system mangles that, it should be ampserand, a, p, o, s, semicolon) instead of actual apostrophes.</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
<p>When I subscribe in Google Reader though, I&#8217;m seeing lots of &#8220;&apos;&#8221; (in case the comments system mangles that, it should be ampserand, a, p, o, s, semicolon) instead of actual apostrophes.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Adrian Howard</title>
		<link>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-982</link>
		<pubDate>Wed, 06 Dec 2006 10:07:04 +0000</pubDate>
		<guid>http://jc.ngo.org.uk/blog/2006/12/05/useperl-journals-and-full-text-feeds/#comment-982</guid>
					<description>Sooooooper. Thank you :-)</description>
		<content:encoded><![CDATA[<p>Sooooooper. Thank you :-)
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
