<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Two Amazing Things: Thing #1</title>
	<atom:link href="http://ryanbigg.com/2009/06/two-amazing-things-thing-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryanbigg.com/2009/06/two-amazing-things-thing-1/</link>
	<description>Life &#38; Everything Else</description>
	<lastBuildDate>Wed, 10 Mar 2010 07:34:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Radar</title>
		<link>http://ryanbigg.com/2009/06/two-amazing-things-thing-1/comment-page-1/#comment-16238</link>
		<dc:creator>Radar</dc:creator>
		<pubDate>Fri, 03 Jul 2009 01:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/?p=625#comment-16238</guid>
		<description>&lt;p&gt;Fantastic thanks Nathan!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Fantastic thanks Nathan!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Weizenbaum</title>
		<link>http://ryanbigg.com/2009/06/two-amazing-things-thing-1/comment-page-1/#comment-16086</link>
		<dc:creator>Nathan Weizenbaum</dc:creator>
		<pubDate>Wed, 01 Jul 2009 07:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/?p=625#comment-16086</guid>
		<description>&lt;p&gt;I&#039;ve just pushed (what should be) a fix for this issue that will get released soon in Haml 2.2. Haml now has an :encoding option that specifies which encoding to use for the template; this defaults to UTF-8. It won&#039;t automatically re-encode input - that&#039;s Merb&#039;s job - but as long as the input matches the template, these problems shouldn&#039;t arise.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just pushed (what should be) a fix for this issue that will get released soon in Haml 2.2. Haml now has an :encoding option that specifies which encoding to use for the template; this defaults to UTF-8. It won&#8217;t automatically re-encode input &#8211; that&#8217;s Merb&#8217;s job &#8211; but as long as the input matches the template, these problems shouldn&#8217;t arise.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Bigg</title>
		<link>http://ryanbigg.com/2009/06/two-amazing-things-thing-1/comment-page-1/#comment-16061</link>
		<dc:creator>Ryan Bigg</dc:creator>
		<pubDate>Wed, 01 Jul 2009 01:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/?p=625#comment-16061</guid>
		<description>&lt;p&gt;I can see how it was interpreted that way, my bad.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I can see how it was interpreted that way, my bad.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: James Healy</title>
		<link>http://ryanbigg.com/2009/06/two-amazing-things-thing-1/comment-page-1/#comment-16050</link>
		<dc:creator>James Healy</dc:creator>
		<pubDate>Wed, 01 Jul 2009 00:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/?p=625#comment-16050</guid>
		<description>&lt;p&gt;You&#039;re right - if it&#039;s your own view you can be sure the content is UTF-8 and can safely force the encoding yourself.&lt;/p&gt;

&lt;p&gt;I read the post as proposing a patch for HAML that does the force_encoding() call. That would be dangerous since it&#039;s possible developers will want to generate non UTF-8 HAML files.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You&#8217;re right &#8211; if it&#8217;s your own view you can be sure the content is UTF-8 and can safely force the encoding yourself.</p>

<p>I read the post as proposing a patch for HAML that does the force_encoding() call. That would be dangerous since it&#8217;s possible developers will want to generate non UTF-8 HAML files.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Bodaniel Jeanes</title>
		<link>http://ryanbigg.com/2009/06/two-amazing-things-thing-1/comment-page-1/#comment-16035</link>
		<dc:creator>Bodaniel Jeanes</dc:creator>
		<pubDate>Tue, 30 Jun 2009 21:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/?p=625#comment-16035</guid>
		<description>&lt;p&gt;James,&lt;/p&gt;

&lt;p&gt;This is true. How would you best handle it? HAML is appending two strings together, one is UTF-8 and one is not. If they differ, an exception gets raised...&lt;/p&gt;

&lt;p&gt;Also, in this context, the string is coming from the HAML views. It was outputting the user&#039;s search query onto the page, sure, but whatever passed it to us (in this case it was Merb&#039;s params, I suppose) was obviosly butchering the encoding to make the string ASCII-8BIT in the first place...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>James,</p>

<p>This is true. How would you best handle it? HAML is appending two strings together, one is UTF-8 and one is not. If they differ, an exception gets raised&#8230;</p>

<p>Also, in this context, the string is coming from the HAML views. It was outputting the user&#8217;s search query onto the page, sure, but whatever passed it to us (in this case it was Merb&#8217;s params, I suppose) was obviosly butchering the encoding to make the string ASCII-8BIT in the first place&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: James Healy</title>
		<link>http://ryanbigg.com/2009/06/two-amazing-things-thing-1/comment-page-1/#comment-16010</link>
		<dc:creator>James Healy</dc:creator>
		<pubDate>Tue, 30 Jun 2009 12:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/?p=625#comment-16010</guid>
		<description>&lt;p&gt;Except that forcing a string into UTF-8 isn&#039;t necessarily the correct thing to do.&lt;/p&gt;

&lt;p&gt;What if the user&#039;s browser has submitted iso-8859-1, Shift-JIS or Big-5 data?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Except that forcing a string into UTF-8 isn&#8217;t necessarily the correct thing to do.</p>

<p>What if the user&#8217;s browser has submitted iso-8859-1, Shift-JIS or Big-5 data?</p>]]></content:encoded>
	</item>
</channel>
</rss>
