<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Natural Code</title>
	<atom:link href="http://naturalcode.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://naturalcode.wordpress.com</link>
	<description>Code, science and politics.</description>
	<lastBuildDate>Mon, 20 Jul 2009 09:15:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Ruby 1.9 and Unicode: The BOM Will Fuck Your Shit Up by Wiki-fan</title>
		<link>http://naturalcode.wordpress.com/2008/08/30/ruby-19-and-unicode-the-bom-will-fuck-your-shit-up/#comment-37</link>
		<dc:creator>Wiki-fan</dc:creator>
		<pubDate>Mon, 20 Jul 2009 09:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=125#comment-37</guid>
		<description>http://en.wikipedia.org/wiki/Byte-order_mark</description>
		<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Byte-order_mark" rel="nofollow">http://en.wikipedia.org/wiki/Byte-order_mark</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby 1.9 and Unicode: The BOM Will Fuck Your Shit Up by Geoff Adams</title>
		<link>http://naturalcode.wordpress.com/2008/08/30/ruby-19-and-unicode-the-bom-will-fuck-your-shit-up/#comment-30</link>
		<dc:creator>Geoff Adams</dc:creator>
		<pubDate>Fri, 21 Nov 2008 19:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=125#comment-30</guid>
		<description>Actually, no, naturalcode is correct. While UTF-8 is indeed a variable-length encoding, there are no byte order issues. The specification clearly describes the order in which the bytes must appear in the stream, and that order does not depend on the endianness of the processing machine.

Put another way, UTF-8 does not represent characters as mutli-byte numerical words, as UTF-16 does. It&#039;s a variable-length stream of bytes. The UTF-8 file cannot be interpreted differently if the BOM is 0xFE 0xFF or 0xFF 0xFE.

I also don&#039;t understand why some editors put a BOM in UTF-8 files. I suppose that since the BOM is, itself, encoded as UTF-8 (and therefore doesn&#039;t even appear as a raw, two-byte  0xFE 0xFF or 0xFF 0xFE in the file), a processor can see the 0xEF 0xBB 0xBF sequence and recognize the file as UTF-8. But really...</description>
		<content:encoded><![CDATA[<p>Actually, no, naturalcode is correct. While UTF-8 is indeed a variable-length encoding, there are no byte order issues. The specification clearly describes the order in which the bytes must appear in the stream, and that order does not depend on the endianness of the processing machine.</p>
<p>Put another way, UTF-8 does not represent characters as mutli-byte numerical words, as UTF-16 does. It&#8217;s a variable-length stream of bytes. The UTF-8 file cannot be interpreted differently if the BOM is 0xFE 0xFF or 0xFF 0xFE.</p>
<p>I also don&#8217;t understand why some editors put a BOM in UTF-8 files. I suppose that since the BOM is, itself, encoded as UTF-8 (and therefore doesn&#8217;t even appear as a raw, two-byte  0xFE 0xFF or 0xFF 0xFE in the file), a processor can see the 0xEF 0xBB 0xBF sequence and recognize the file as UTF-8. But really&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fire Katie Couric (hire a journalist instead) by McCain&#8217;s Big Lie about &#8220;The Surge&#8221;: Thank God Facts Don&#8217;t Matter in a Presidential Election, ey? &#171; Reverend Manny and The Twilight Empire</title>
		<link>http://naturalcode.wordpress.com/2008/07/24/fire-katie-couric-hire-a-journalist-instead/#comment-29</link>
		<dc:creator>McCain&#8217;s Big Lie about &#8220;The Surge&#8221;: Thank God Facts Don&#8217;t Matter in a Presidential Election, ey? &#171; Reverend Manny and The Twilight Empire</dc:creator>
		<pubDate>Wed, 01 Oct 2008 13:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=36#comment-29</guid>
		<description>[...] Now, let&#8217;s dig out some dates. (great breakdown from naturalcode.wordpress.com) When did it start? That&#8217;s right, the Sunni Awakening started a few months BEFORE the surge, and a few months before the troops ACTUALLY GOT THERE. Hm&#8230;. [...]</description>
		<content:encoded><![CDATA[<p>[...] Now, let&#8217;s dig out some dates. (great breakdown from naturalcode.wordpress.com) When did it start? That&#8217;s right, the Sunni Awakening started a few months BEFORE the surge, and a few months before the troops ACTUALLY GOT THERE. Hm&#8230;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fire Katie Couric (hire a journalist instead) by Reverend Manny</title>
		<link>http://naturalcode.wordpress.com/2008/07/24/fire-katie-couric-hire-a-journalist-instead/#comment-28</link>
		<dc:creator>Reverend Manny</dc:creator>
		<pubDate>Wed, 01 Oct 2008 13:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=36#comment-28</guid>
		<description>FUCK YEAH!! It is un-fucking-believable that McCain is literally running on the fact that the Surge worked.

Great, GREAT POST... i&#039;m definitely linking to it...


One Love,
--Reverend Manny and the Twilight Empire</description>
		<content:encoded><![CDATA[<p>FUCK YEAH!! It is un-fucking-believable that McCain is literally running on the fact that the Surge worked.</p>
<p>Great, GREAT POST&#8230; i&#8217;m definitely linking to it&#8230;</p>
<p>One Love,<br />
&#8211;Reverend Manny and the Twilight Empire</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby 1.9 and Unicode: The BOM Will Fuck Your Shit Up by James Bennett</title>
		<link>http://naturalcode.wordpress.com/2008/08/30/ruby-19-and-unicode-the-bom-will-fuck-your-shit-up/#comment-27</link>
		<dc:creator>James Bennett</dc:creator>
		<pubDate>Sun, 31 Aug 2008 04:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=125#comment-27</guid>
		<description>&quot;I’m pretty sure it’s useless, because UTF-8 doesn’t actually have a variable byte order to keep track of&quot;

This is incorrect; UTF-8 can get away with a single byte for commonly-used characters in Western European scripts, but there are many more characters in Unicode than there are bits in a single byte. As a result, UTF-8 can use anywhere from one to four bytes to encode a particular Unicode character; hence UTF-8 is a variable-length encoding (as is UTF-16; only UTF-32 can guarantee that it uses the same number of bytes for every character) and can encounter byte-order issues which the BOM solves.</description>
		<content:encoded><![CDATA[<p>&#8220;I’m pretty sure it’s useless, because UTF-8 doesn’t actually have a variable byte order to keep track of&#8221;</p>
<p>This is incorrect; UTF-8 can get away with a single byte for commonly-used characters in Western European scripts, but there are many more characters in Unicode than there are bits in a single byte. As a result, UTF-8 can use anywhere from one to four bytes to encode a particular Unicode character; hence UTF-8 is a variable-length encoding (as is UTF-16; only UTF-32 can guarantee that it uses the same number of bytes for every character) and can encounter byte-order issues which the BOM solves.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby 1.9 and Code Generation: How I Learned to Stop Worrying and Love Unicode by naturalcode</title>
		<link>http://naturalcode.wordpress.com/2008/08/24/ruby-19-and-code-generation-how-i-learned-to-stop-worrying-and-love-unicode/#comment-26</link>
		<dc:creator>naturalcode</dc:creator>
		<pubDate>Mon, 25 Aug 2008 19:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=122#comment-26</guid>
		<description>That makes sense. Probably the text editor has a France regional encoding and NetBeans uses a Canada French encoding, or something like that.</description>
		<content:encoded><![CDATA[<p>That makes sense. Probably the text editor has a France regional encoding and NetBeans uses a Canada French encoding, or something like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby 1.9 and Code Generation: How I Learned to Stop Worrying and Love Unicode by guilhem</title>
		<link>http://naturalcode.wordpress.com/2008/08/24/ruby-19-and-code-generation-how-i-learned-to-stop-worrying-and-love-unicode/#comment-25</link>
		<dc:creator>guilhem</dc:creator>
		<pubDate>Mon, 25 Aug 2008 10:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=122#comment-25</guid>
		<description>I think what ak was saying is that : ASCII-7bit (ie ASCII) is a strict subset of UTF-8. Anything with an accent is not ASCII but any of the various regional encodings (like iso-8859-1 for france), which are sometimes referred to as just ASCII-8bit, but which are not compatible with each other.</description>
		<content:encoded><![CDATA[<p>I think what ak was saying is that : ASCII-7bit (ie ASCII) is a strict subset of UTF-8. Anything with an accent is not ASCII but any of the various regional encodings (like iso-8859-1 for france), which are sometimes referred to as just ASCII-8bit, but which are not compatible with each other.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby 1.9 and Code Generation: How I Learned to Stop Worrying and Love Unicode by naturalcode</title>
		<link>http://naturalcode.wordpress.com/2008/08/24/ruby-19-and-code-generation-how-i-learned-to-stop-worrying-and-love-unicode/#comment-24</link>
		<dc:creator>naturalcode</dc:creator>
		<pubDate>Mon, 25 Aug 2008 04:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=122#comment-24</guid>
		<description>Doesn&#039;t look like it. This is what happens when my text editor is on its default settings:

puts &#039;Café&#039;.encoding
&gt;ASCII-8BIT

Not only that, but when I do File-&gt;Encoding-&gt;UTF-8, the é and the last apostrophe become an Asian character. Once I erase it and type the é again, this is what happens:

puts &#039;Café&#039;.encoding
&gt;UTF-8

And NetBeans doesn&#039;t interpret the é properly unless I do it that way. Seems pretty clear-cut to me. I think if anyone is mixing up their charsets, it must be NetBeans or SciTE.</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t look like it. This is what happens when my text editor is on its default settings:</p>
<p>puts &#8216;Café&#8217;.encoding<br />
&gt;ASCII-8BIT</p>
<p>Not only that, but when I do File-&gt;Encoding-&gt;UTF-8, the é and the last apostrophe become an Asian character. Once I erase it and type the é again, this is what happens:</p>
<p>puts &#8216;Café&#8217;.encoding<br />
&gt;UTF-8</p>
<p>And NetBeans doesn&#8217;t interpret the é properly unless I do it that way. Seems pretty clear-cut to me. I think if anyone is mixing up their charsets, it must be NetBeans or SciTE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby 1.9 and Code Generation: How I Learned to Stop Worrying and Love Unicode by ak</title>
		<link>http://naturalcode.wordpress.com/2008/08/24/ruby-19-and-code-generation-how-i-learned-to-stop-worrying-and-love-unicode/#comment-23</link>
		<dc:creator>ak</dc:creator>
		<pubDate>Sun, 24 Aug 2008 22:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=122#comment-23</guid>
		<description>ASCII is a strict subset of UTF-8, i.e. every ASCII textfile is also a valid UTF-8 textfile, so you&#039;re obviously mixing it up with some other charset. ISO-8859-1(5) maybe?</description>
		<content:encoded><![CDATA[<p>ASCII is a strict subset of UTF-8, i.e. every ASCII textfile is also a valid UTF-8 textfile, so you&#8217;re obviously mixing it up with some other charset. ISO-8859-1(5) maybe?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Stoning of John Edwards by naturalcode</title>
		<link>http://naturalcode.wordpress.com/2008/08/10/the-stoning-of-john-edwards/#comment-22</link>
		<dc:creator>naturalcode</dc:creator>
		<pubDate>Mon, 11 Aug 2008 16:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://naturalcode.wordpress.com/?p=115#comment-22</guid>
		<description>This article might give a little historical perspective.

&lt;a href=&quot;http://www.alternet.org/election08/94550/how_is_john_mccain%27s_affair_different_from_john_edwards%27/&quot; rel=&quot;nofollow&quot;&gt;How Is John McCain&#039;s Affair Different from John Edwards&#039;?&lt;/a&gt;

&lt;blockquote&gt;We have this weird notion in America now that if a politician is caught in an affair that his career is done. We seem to be saying that what he did in his private life effects his policies or how he governs. But we all know that isn&#039;t true. We know that because almost all of our great presidents, and great leaders throughout history, have had numerous affairs. Obviously it didn&#039;t hurt how they governed at all.&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>This article might give a little historical perspective.</p>
<p><a href="http://www.alternet.org/election08/94550/how_is_john_mccain%27s_affair_different_from_john_edwards%27/" rel="nofollow">How Is John McCain&#8217;s Affair Different from John Edwards&#8217;?</a></p>
<blockquote><p>We have this weird notion in America now that if a politician is caught in an affair that his career is done. We seem to be saying that what he did in his private life effects his policies or how he governs. But we all know that isn&#8217;t true. We know that because almost all of our great presidents, and great leaders throughout history, have had numerous affairs. Obviously it didn&#8217;t hurt how they governed at all.</p></blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>
