<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Humker的天空 &#187; 中文</title>
	<atom:link href="http://www.humker.com/tag/%e4%b8%ad%e6%96%87/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.humker.com</link>
	<description>健康，快乐。</description>
	<lastBuildDate>Wed, 25 Jan 2012 12:16:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>人生四大喜和四大悲</title>
		<link>http://www.humker.com/2008/10/04/chinese-life-value/</link>
		<comments>http://www.humker.com/2008/10/04/chinese-life-value/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 12:25:53 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[社会视点]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=176</guid>
		<description><![CDATA[人生四大喜事，这个好像比较有名。 久旱逢甘霖， 他乡遇故知， 洞房花烛夜， 金榜题名时。 人生四大悲，这个是网友杜撰的。 久旱逢甘霖，一滴； 他乡遇故知，债主； 洞房花烛夜，隔壁； 金榜题名时，做梦。 可以体会到时代的变迁。]]></description>
			<content:encoded><![CDATA[<p>人生四大喜事，这个好像比较有名。</p>
<blockquote><p>久旱逢甘霖，<br />
他乡遇故知，<br />
洞房花烛夜，<br />
金榜题名时。</p></blockquote>
<p>人生四大悲，这个是网友杜撰的。</p>
<blockquote><p>久旱逢甘霖，一滴；<br />
他乡遇故知，债主；<br />
洞房花烛夜，隔壁；<br />
金榜题名时，做梦。</p></blockquote>
<p>可以体会到时代的变迁。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/10/04/chinese-life-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress 中文 tag 问题补充</title>
		<link>http://www.humker.com/2008/09/15/wordpress-chinese-tag-addon/</link>
		<comments>http://www.humker.com/2008/09/15/wordpress-chinese-tag-addon/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 02:56:08 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=155</guid>
		<description><![CDATA[前一段时间写过一篇帖子 wordpress 中文 url 的问题 确实可以从根本上解决 windows 下 url 重写中文 url 的问题，利用的是让url路径使用gbk编码。自己心里想一想，总感觉到有些问题，utf8的编码为什强加上gbk呢？这个方法的坏影响我还不知道，最近gg来的流量很奇怪。 后来自己想出一个折中的方法就是，只修改tag的rewrite路径，只有tag路径静态化时出现中文编码问题，干脆让他使用动态，其他的非中文路径不用管。当然这样说是在你的栏目和文章简短路径没有使用中文的情况下。下面给出修改方法。 wordpress的路径重写规则都在一个文件中，即wp-include/rewrite.php里面。找到tag的url路径函数，让他保持动态。代码在460行左右 if (empty($this-&#62;permalink_structure)) {    $this-&#62;tag_structure = &#8221;;    return false;   } 修改为 if (!empty($this-&#62;permalink_structure)) {    $this-&#62;tag_structure = &#8221;;    return false;   } 其中的原理是做相反的判断。 还要说一下，tag的功能是引导访问者的功能，对于搜索引擎来说，tag路径静态化本人认为没有多大作用，反而会加深“复制内容”的嫌疑。]]></description>
			<content:encoded><![CDATA[<p>前一段时间写过一篇帖子 <a href="http://www.humker.com/2008/08/12/wordpress-chinese-url-problem/" target="_blank">wordpress 中文 url 的问题</a> 确实可以从根本上解决 windows 下 url 重写中文 url 的问题，利用的是让url路径使用gbk编码。自己心里想一想，总感觉到有些问题，utf8的编码为什强加上gbk呢？这个方法的坏影响我还不知道，最近gg来的流量很奇怪。</p>
<p>后来自己想出一个折中的方法就是，只修改tag的rewrite路径，只有tag路径静态化时出现中文编码问题，干脆让他使用动态，其他的非中文路径不用管。当然这样说是在你的栏目和文章简短路径没有使用中文的情况下。下面给出修改方法。</p>
<p>wordpress的路径重写规则都在一个文件中，即wp-include/rewrite.php里面。找到tag的url路径函数，让他保持动态。代码在460行左右</p>
<blockquote><p>if (empty($this-&gt;permalink_structure)) {<br />
   $this-&gt;tag_structure = &#8221;;<br />
   return false;<br />
  }</p></blockquote>
<p>修改为</p>
<blockquote><p>if (!empty($this-&gt;permalink_structure)) {<br />
   $this-&gt;tag_structure = &#8221;;<br />
   return false;<br />
  }</p></blockquote>
<p>其中的原理是做相反的判断。</p>
<p>还要说一下，tag的功能是引导访问者的功能，对于搜索引擎来说，tag路径静态化本人认为没有多大作用，反而会加深“复制内容”的嫌疑。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/09/15/wordpress-chinese-tag-addon/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress 中文 url 的问题</title>
		<link>http://www.humker.com/2008/08/12/wordpress-chinese-url-problem/</link>
		<comments>http://www.humker.com/2008/08/12/wordpress-chinese-url-problem/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 11:42:35 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=124</guid>
		<description><![CDATA[先前一篇文章介绍了一个wordpress iis 下 ISAPI_Rewrite的一个新规则 如果大家用了那个规则，可以看到英文的url不会有任何问题，但含有中文的会返回404页面。 服务器是windows 2003的，默认字符集是gbk编码的，前面的文章有介绍这类的文章 比如 http://www.humker.com/2008/05/17/character-set/ 专门介绍了字符集的区别 php用的字符集是utf-8的，这样与服务器的交互就会有问题。 如果是乱码文章就不会回显变量值，以前一个ecms的批量插入软件的插件就是这个问题，读取不了中文目录。 下面的文章解决了中文url的问题，当然不仅仅是tag的问题，因为她的方法是让所有的url重新编码。 如何让WordPress的tag支持中文 http://www.bolarn.com/index.php/2008/01/26/52/ 这篇文章主要改动的是 wp-includes\classes.php文件 找到 if ( isset($_SERVER['PATH_INFO']) )   $pathinfo = $_SERVER['PATH_INFO']; else   $pathinfo = &#8221;; $pathinfo_array = explode(&#8216;?&#8217;, $pathinfo); $pathinfo = str_replace(&#8220;%&#8221;, &#8220;%25&#8243;, $pathinfo_array[0]); $req_uri = $_SERVER['REQUEST_URI']; 替换为 if ( isset($_SERVER['PATH_INFO']) )   $pathinfo = mb_convert_encoding($_SERVER['PATH_INFO'], &#8220;UTF-8&#8243;, &#8220;GBK&#8221;); else [...]]]></description>
			<content:encoded><![CDATA[<p>先前一篇文章介绍了一个wordpress iis 下 ISAPI_Rewrite的一个新规则<br />
如果大家用了那个规则，可以看到英文的url不会有任何问题，但含有中文的会返回404页面。<br />
服务器是windows 2003的，默认字符集是gbk编码的，前面的文章有介绍这类的文章<br />
比如<br />
<a href="http://www.humker.com/2008/05/17/character-set/">http://www.humker.com/2008/05/17/character-set/</a><br />
专门介绍了字符集的区别<br />
php用的字符集是utf-8的，这样与服务器的交互就会有问题。<br />
如果是乱码文章就不会回显变量值，以前一个ecms的批量插入软件的插件就是这个问题，读取不了中文目录。<br />
下面的文章解决了中文url的问题，当然不仅仅是tag的问题，因为她的方法是让所有的url重新编码。<br />
如何让WordPress的tag支持中文<br />
<a href="http://www.bolarn.com/index.php/2008/01/26/52/">http://www.bolarn.com/index.php/2008/01/26/52/</a><br />
这篇文章主要改动的是<br />
wp-includes\classes.php文件<br />
找到</p>
<blockquote><p>if ( isset($_SERVER['PATH_INFO']) )<br />
  $pathinfo = $_SERVER['PATH_INFO'];<br />
else<br />
  $pathinfo = &#8221;;<br />
$pathinfo_array = explode(&#8216;?&#8217;, $pathinfo);<br />
$pathinfo = str_replace(&#8220;%&#8221;, &#8220;%25&#8243;, $pathinfo_array[0]);<br />
$req_uri = $_SERVER['REQUEST_URI'];</p></blockquote>
<p>替换为</p>
<blockquote><p>if ( isset($_SERVER['PATH_INFO']) )<br />
  $pathinfo = mb_convert_encoding($_SERVER['PATH_INFO'], &#8220;UTF-8&#8243;, &#8220;GBK&#8221;);<br />
else<br />
  $pathinfo = &#8221;;<br />
$pathinfo_array = explode(&#8216;?&#8217;, $pathinfo);<br />
$pathinfo = str_replace(&#8220;%&#8221;, &#8220;%25&#8243;, $pathinfo_array[0]);<br />
$req_uri = mb_convert_encoding($_SERVER['REQUEST_URI'], &#8220;UTF-8&#8243;, &#8220;GBK&#8221;);</p></blockquote>
<p>原文处css有问题不能完全显示，这里又贴了一遍。</p>
<p>另外一个就是替换一个文件 taxonomy.php</p>
<p>google搜索“wordpress-26-chinese-tags-bug-fixed.zip”，本站就不提供下载了。</p>
<p>这个文件有望在2.6.1里修正，主要目的是中文 tag 页回显 title 有问题。</p>
<p>另外如果使用本站新的url rewrite规则，还要修改一个文件</p>
<p>具体参考这个文章<br />
<a href="http://trac.wordpress.org/ticket/5682">http://trac.wordpress.org/ticket/5682</a></p>
<blockquote><p>if ( empty( $_SERVER['REQUEST_URI'] ) )</p></blockquote>
<p>替换为</p>
<blockquote><p>if ( empty( $_SERVER['REQUEST_URI'] ) || substr( $_SERVER['SERVER_SOFTWARE'], 0, 13 ) == &#8216;Microsoft-IIS&#8217; )</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/08/12/wordpress-chinese-url-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

