<?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 on: mbstring vs iconv</title>
	<atom:link href="http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/feed/" rel="self" type="application/rss+xml" />
	<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/</link>
	<description>The daily job of Dokeos' lead developer</description>
	<lastBuildDate>Sat, 31 Oct 2009 18:23:06 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Willem</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-1003</link>
		<dc:creator>Willem</dc:creator>
		<pubDate>Fri, 24 Apr 2009 08:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-1003</guid>
		<description>One difference between iconv() and mb_convert_encoding() is that iconv supports flags such as //IGNORE and //TRANSLIT, which can be used to deal with characters present in one character set but not in the other, eg.

$iso = iconv(&#039;UTF-8&#039;, &#039;ISO-8859-1//TRANSLIT&#039;, $utf8_string);</description>
		<content:encoded><![CDATA[<p>One difference between iconv() and mb_convert_encoding() is that iconv supports flags such as //IGNORE and //TRANSLIT, which can be used to deal with characters present in one character set but not in the other, eg.</p>
<p>$iso = iconv(&#8216;UTF-8&#8242;, &#8216;ISO-8859-1//TRANSLIT&#8217;, $utf8_string);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mbstring vs iconv benchmarking &#171; Dokeos lead developer&#8217;s Weblog</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-465</link>
		<dc:creator>mbstring vs iconv benchmarking &#171; Dokeos lead developer&#8217;s Weblog</dc:creator>
		<pubDate>Mon, 06 Oct 2008 03:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-465</guid>
		<description>[...] vs iconv&#160;benchmarking  Following up on my previous post about the differences between the mbstring and iconv international characters libraries (which [...]</description>
		<content:encoded><![CDATA[<p>[...] vs iconv&nbsp;benchmarking  Following up on my previous post about the differences between the mbstring and iconv international characters libraries (which [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ywarnier</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-380</link>
		<dc:creator>ywarnier</dc:creator>
		<pubDate>Fri, 05 Sep 2008 16:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-380</guid>
		<description>Thanks for the e-mail. I&#039;ll be preparing a fresh post to show the results of all this. Just so that I don&#039;t forget, the test file can be found here:
http://mirror3.mirrors.tds.net/pub/gutenberg.org/1/3/0/8/13083/13083-utf8.txt</description>
		<content:encoded><![CDATA[<p>Thanks for the e-mail. I&#8217;ll be preparing a fresh post to show the results of all this. Just so that I don&#8217;t forget, the test file can be found here:<br />
<a href="http://mirror3.mirrors.tds.net/pub/gutenberg.org/1/3/0/8/13083/13083-utf8.txt" rel="nofollow">http://mirror3.mirrors.tds.net/pub/gutenberg.org/1/3/0/8/13083/13083-utf8.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ywarnier</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-378</link>
		<dc:creator>ywarnier</dc:creator>
		<pubDate>Thu, 04 Sep 2008 21:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-378</guid>
		<description>Mmmh, that&#039;s great! You can send that to me at yannick dot warnier -at- dokeos dot com. It would probably result in an ugly, unreadable comment indeed, so I&#039;ll try to see if I can put it in the post itself nicely (wordpress isn&#039;t really *good* at code display, but still... I can fake indentation) or attach it as a file.
Don&#039;t forget to mention under which license you are providing this bit of code (I suggest LGPL, should be free enough to do whatever one might want to do).</description>
		<content:encoded><![CDATA[<p>Mmmh, that&#8217;s great! You can send that to me at yannick dot warnier -at- dokeos dot com. It would probably result in an ugly, unreadable comment indeed, so I&#8217;ll try to see if I can put it in the post itself nicely (wordpress isn&#8217;t really *good* at code display, but still&#8230; I can fake indentation) or attach it as a file.<br />
Don&#8217;t forget to mention under which license you are providing this bit of code (I suggest LGPL, should be free enough to do whatever one might want to do).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicola</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-377</link>
		<dc:creator>Nicola</dc:creator>
		<pubDate>Thu, 04 Sep 2008 20:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-377</guid>
		<description>Just for fun this evening I did a little benchmarking program on the various strlen versions (strlen, mb_strlen and iconv_strlen). I was expecting something boring but the results has been quite surprising: on my PC, mb_strlen() is about 4/5 times quicker than iconv_strlen().

I applied strlen line per line on an UTF8 encoded text from Gutenberg (R.U.R., I don&#039;t know what it is), and these are a sample of my results:

dummy_strlen 5853 (4485 lines and 0 chars)
strlen 4853 (4485 lines and 150846 chars)
mb_strlen 8574 (4485 lines and 140932 chars)
iconv_strlen 38774 (4485 lines and 140932 chars)

The dummy_strlen() is an empty callback. The times are expressed in uSeconds.

Yannick, if you give me some reference I can send you the program: I fear posting it here will result in an ugly, unreadable comment.</description>
		<content:encoded><![CDATA[<p>Just for fun this evening I did a little benchmarking program on the various strlen versions (strlen, mb_strlen and iconv_strlen). I was expecting something boring but the results has been quite surprising: on my PC, mb_strlen() is about 4/5 times quicker than iconv_strlen().</p>
<p>I applied strlen line per line on an UTF8 encoded text from Gutenberg (R.U.R., I don&#8217;t know what it is), and these are a sample of my results:</p>
<p>dummy_strlen 5853 (4485 lines and 0 chars)<br />
strlen 4853 (4485 lines and 150846 chars)<br />
mb_strlen 8574 (4485 lines and 140932 chars)<br />
iconv_strlen 38774 (4485 lines and 140932 chars)</p>
<p>The dummy_strlen() is an empty callback. The times are expressed in uSeconds.</p>
<p>Yannick, if you give me some reference I can send you the program: I fear posting it here will result in an ugly, unreadable comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ywarnier</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-365</link>
		<dc:creator>ywarnier</dc:creator>
		<pubDate>Fri, 29 Aug 2008 17:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-365</guid>
		<description>Actually, nothing really came out of that post. It seems it&#039;s a general lack of knowledge, a lack of interest or a fear of starting a flame wars (although I would not tend to believe it&#039;s the latter, considering how easily flame wars are initiated).

The thread archive can be found here:
http://lists-archives.org/php-general/330773-mbstring-vs-iconv-any-existing-benchmark.html
and as you can see, only one person replied, and didn&#039;t give much info.</description>
		<content:encoded><![CDATA[<p>Actually, nothing really came out of that post. It seems it&#8217;s a general lack of knowledge, a lack of interest or a fear of starting a flame wars (although I would not tend to believe it&#8217;s the latter, considering how easily flame wars are initiated).</p>
<p>The thread archive can be found here:<br />
<a href="http://lists-archives.org/php-general/330773-mbstring-vs-iconv-any-existing-benchmark.html" rel="nofollow">http://lists-archives.org/php-general/330773-mbstring-vs-iconv-any-existing-benchmark.html</a><br />
and as you can see, only one person replied, and didn&#8217;t give much info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicola</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-364</link>
		<dc:creator>Nicola</dc:creator>
		<pubDate>Fri, 29 Aug 2008 17:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-364</guid>
		<description>Care to share the results?</description>
		<content:encoded><![CDATA[<p>Care to share the results?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ywarnier</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-120</link>
		<dc:creator>ywarnier</dc:creator>
		<pubDate>Thu, 24 Apr 2008 22:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-120</guid>
		<description>Interesting to know. I just sent a mail to php-general&#039;s list to see if there&#039;s someone there who knows more about actual benchmarks or anything useful in terms of comparison.</description>
		<content:encoded><![CDATA[<p>Interesting to know. I just sent a mail to php-general&#8217;s list to see if there&#8217;s someone there who knows more about actual benchmarks or anything useful in terms of comparison.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magento Partner</title>
		<link>http://dokeoslead.wordpress.com/2008/04/22/mbstring-vs-iconv/#comment-119</link>
		<dc:creator>Magento Partner</dc:creator>
		<pubDate>Thu, 24 Apr 2008 21:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://dokeoslead.wordpress.com/?p=53#comment-119</guid>
		<description>In Zend Framework and applications depending on it like Magento they prefer iconv instead of the old mbstring. Although I guess there are good reasons why Zend has choosen the &quot;new&quot; iconv lib, mbstring has still a lot more and helpful functions to offer. 
Perhaps Zend will rely on the libiconv in feature PHP releases - just think of mb support in PHP6....</description>
		<content:encoded><![CDATA[<p>In Zend Framework and applications depending on it like Magento they prefer iconv instead of the old mbstring. Although I guess there are good reasons why Zend has choosen the &#8220;new&#8221; iconv lib, mbstring has still a lot more and helpful functions to offer.<br />
Perhaps Zend will rely on the libiconv in feature PHP releases &#8211; just think of mb support in PHP6&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
