<?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: wordpress UTF8 中文字数统计插件</title>
	<atom:link href="http://iregex.org/blog/wordpress-word-counter-for-utf8-chinese.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iregex.org/blog/wordpress-word-counter-for-utf8-chinese.html</link>
	<description>关注正则表达式和搜索引擎</description>
	<lastBuildDate>Fri, 12 Mar 2010 05:43:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: voidman</title>
		<link>http://iregex.org/blog/wordpress-word-counter-for-utf8-chinese.html/comment-page-1#comment-292</link>
		<dc:creator>voidman</dc:creator>
		<pubDate>Fri, 02 Jan 2009 03:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=50#comment-292</guid>
		<description>mb_strlen </description>
		<content:encoded><![CDATA[<p>mb_strlen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zhasm</title>
		<link>http://iregex.org/blog/wordpress-word-counter-for-utf8-chinese.html/comment-page-1#comment-293</link>
		<dc:creator>zhasm</dc:creator>
		<pubDate>Fri, 02 Jan 2009 03:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://iregex.org/?p=50#comment-293</guid>
		<description>经测试，mb_strlen函数返回的是字符串的绝对长度。当指定字符串编码为UTF-8时，每个中文字长度为1。例如，  
 
 $string=&quot;你好，世界。Hello world.&quot;   
echo mb_strlen($string,&quot;utf-8&quot;);   
//此处结果为18.   
echo str_word_count_utf8($string) //此处结果为6.   
 
mb_strlen得到的是18＝4个中文字＋2个中文标点＋10个英文字母＋1空格＋1点号，因此在wordpress中，不能依靠此函数来数中文字数与英语单词数之和。 </description>
		<content:encoded><![CDATA[<p>经测试，mb_strlen函数返回的是字符串的绝对长度。当指定字符串编码为UTF-8时，每个中文字长度为1。例如，  </p>
<p> $string=&quot;你好，世界。Hello world.&quot;<br />
echo mb_strlen($string,&quot;utf-8&quot;);<br />
//此处结果为18.<br />
echo str_word_count_utf8($string) //此处结果为6.   </p>
<p>mb_strlen得到的是18＝4个中文字＋2个中文标点＋10个英文字母＋1空格＋1点号，因此在wordpress中，不能依靠此函数来数中文字数与英语单词数之和。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
