<?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: Is BIT_LENGTH() useful?</title>
	<atom:link href="http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/</link>
	<description>Ramblings which occasionally resemble reality. This is the blog of Stewart Smith.</description>
	<lastBuildDate>Wed, 28 Jul 2010 07:00:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: PB</title>
		<link>http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/comment-page-1/#comment-90202</link>
		<dc:creator>PB</dc:creator>
		<pubDate>Wed, 27 May 2009 08:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1648#comment-90202</guid>
		<description>I have never seen bit_length outside of man pages.</description>
		<content:encoded><![CDATA[<p>I have never seen bit_length outside of man pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Bradford</title>
		<link>http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/comment-page-1/#comment-90181</link>
		<dc:creator>Ronald Bradford</dc:creator>
		<pubDate>Tue, 19 May 2009 13:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1648#comment-90181</guid>
		<description>Have never used it myself, and have never seen it in use.</description>
		<content:encoded><![CDATA[<p>Have never used it myself, and have never seen it in use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/comment-page-1/#comment-90178</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Tue, 19 May 2009 03:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1648#comment-90178</guid>
		<description>@Antony:

LENGTH() returns the number of bytes consumed, not the number of characters.
To get the number of characters, you have CHAR_LENGTH().

With non-ascii characters, and on utf8 charset, it will follow that LENGTH(t) &gt; CHAR_LENGTH(t)

(BTW, BIT_LENGTH is still LENGTH*8 in this case)</description>
		<content:encoded><![CDATA[<p>@Antony:</p>
<p>LENGTH() returns the number of bytes consumed, not the number of characters.<br />
To get the number of characters, you have CHAR_LENGTH().</p>
<p>With non-ascii characters, and on utf8 charset, it will follow that LENGTH(t) &gt; CHAR_LENGTH(t)</p>
<p>(BTW, BIT_LENGTH is still LENGTH*8 in this case)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antony Curtis</title>
		<link>http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/comment-page-1/#comment-90177</link>
		<dc:creator>Antony Curtis</dc:creator>
		<pubDate>Tue, 19 May 2009 02:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1648#comment-90177</guid>
		<description>Try using it with a UTF8 string which has some multi-byte characters. LENGTH should return number of characters, BIT_LENGTH would include all the bytes which are used to encode it.
So I would say: Definitely useful.</description>
		<content:encoded><![CDATA[<p>Try using it with a UTF8 string which has some multi-byte characters. LENGTH should return number of characters, BIT_LENGTH would include all the bytes which are used to encode it.<br />
So I would say: Definitely useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/comment-page-1/#comment-90176</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 19 May 2009 01:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1648#comment-90176</guid>
		<description>Does it change with a UTF-16 string?</description>
		<content:encoded><![CDATA[<p>Does it change with a UTF-16 string?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Wultsch</title>
		<link>http://www.flamingspork.com/blog/2009/05/19/is-bit_length-useful/comment-page-1/#comment-90175</link>
		<dc:creator>Robert Wultsch</dc:creator>
		<pubDate>Tue, 19 May 2009 00:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1648#comment-90175</guid>
		<description>I have never seen bit_length outside of man pages.</description>
		<content:encoded><![CDATA[<p>I have never seen bit_length outside of man pages.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
