<?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>網生@誌 &#124; zEUS.&#039;Blog &#187; utf-8</title>
	<atom:link href="http://zeuscn.net/index.php/archives/tag/utf-8/feed" rel="self" type="application/rss+xml" />
	<link>http://zeuscn.net</link>
	<description>Not Only Wordpress Template, But Also My Life...</description>
	<lastBuildDate>Tue, 03 Jan 2012 13:20:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>如何控制 WordPress 文章标题的长度（顺带测试一下超长的标题输出）</title>
		<link>http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html</link>
		<comments>http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html#comments</comments>
		<pubDate>Mon, 30 Nov 2009 16:02:44 +0000</pubDate>
		<dc:creator>zEUS.</dc:creator>
				<category><![CDATA[Wordpress研究]]></category>
		<category><![CDATA[character encoding]]></category>
		<category><![CDATA[iso 8859]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zeuscn.net/?p=724</guid>
		<description><![CDATA[虽然大多数时候我们不需要去管 WordPress 文章标题有多长，因为一般比较长的标题会自动分为两行显示。但是有时候我们为了控制模板的样式整洁，希望文章标题只显示成一行，比如 D&#038;Z Theme Pro CP 主题首页幻灯片右侧的“最新的一篇日志”，这里我首先使用固定长度的摘要来控制文章长度，但是如果有时候文章标题过长而显示成两行的时候，文章摘要就会出现“溢出”。这个时候如果能让标题的长度固定为一行，就能让这里的样式看起来更整洁。在好友 Lee 的帮助下，我解决了这个问题。 其实解决这个问题很简单，只需要一句话就行了。在 WordPress 里，我们使用 &#60;?php the_title&#40;&#41;; ?&#62; 来输出文章标题，与其相关的还有一个函数： &#60;?php get_the_title&#40;&#41;; ?&#62; 简单的说说两者的关系，get_the_title() 返回值是一个字符串（文章标题），而 the_title() 就是该字符串通过 echo 输出后的值。 实际上就是 WordPress 自己在输出文章标题时进行了简化，直接用 &#60;?php the_title&#40;&#41;; ?&#62; 代替了 &#60;?php echo get_the_title&#40;&#41;; ?&#62; 除此之外这里还需要用到另外一个函数：mb_strimwidth(string str, int start, int width, [string trimmarker], [string encoding]); mb_strimwidth() truncates string str to specified width. It [...]]]></description>
			<content:encoded><![CDATA[<p>虽然大多数时候我们不需要去管 <a href="http://zeuscn.net/archives/tag/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">WordPress</a> 文章标题有多长，因为一般比较长的标题会自动分为两行显示。但是有时候我们为了控制模板的样式整洁，希望文章标题只显示成一行，比如 <a href="http://zeuscn.net/archives/2009/06/19/dz-theme-pro-cp-released.html" target="_blank">D&#038;Z Theme Pro CP</a> 主题首页幻灯片右侧的“最新的一篇日志”，这里我首先使用固定长度的摘要来控制文章长度，但是如果有时候文章标题过长而显示成两行的时候，文章摘要就会出现“溢出”。这个时候如果能让标题的长度固定为一行，就能让这里的样式看起来更整洁。在好友 Lee 的帮助下，我解决了这个问题。</p>
<p>其实解决这个问题很简单，只需要一句话就行了。在 WordPress 里，我们使用</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>来输出文章标题，与其相关的还有一个函数：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>简单的说说两者的关系，get_the_title() 返回值是一个字符串（文章标题），而 the_title() 就是该字符串通过 echo 输出后的值。<br />
实际上就是 WordPress 自己在输出文章标题时进行了简化，直接用</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>代替了</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>除此之外这里还需要用到另外一个函数：mb_strimwidth(string str, int start, int width, [string trimmarker], [string encoding]);</p>
<blockquote><p>mb_strimwidth() truncates string str to specified width. It returns truncated string. </p>
<p>If trimmarker is set, trimmarker is appended to return value. </p>
<p>start is start position offset. Number of characters from the beginning of string. (First character is 0) </p>
<p>trimmarker is string that is added to the end of string when string is truncated. </p>
<p>encoding is <a href="http://zeuscn.net/archives/tag/character-encoding" class="st_tag internal_tag" rel="tag" title="标签 character encoding 下的日志">character encoding</a>. If it is omitted, internal encoding is used. </p></blockquote>
<p>现在大部分的 <a href="http://zeuscn.net/archives/tag/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">PHP</a> 服务器都支持了 MB 库（mbstring 库 全称是 Multi-Byte String 即各种语言都有自己的编码，他们的字节数是不一样的，目前php内部的编码只支持ISO-8859-*, EUC-JP, <a href="http://zeuscn.net/archives/tag/utf-8" class="st_tag internal_tag" rel="tag" title="标签 utf-8 下的日志">UTF-8</a> 其他的编码的语言是没办法在 <a href="http://zeuscn.net/archives/tag/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a> 程序上正确显示的。解决的方法就是通过 <a href="http://zeuscn.net/archives/tag/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a> 的 mbstring 函数库来解决），所以我们可以放心的使用这个用于控制字符串长度的函数：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">mb_strimwidth</span><span style="color: #009900;">&#40;</span>get_the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">38</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'...'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>那么我们只需要用上面这个函数替换 WordPress 原有的</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>即可，这里我输出了字符串的<strong>第0位到第38位</strong>，根据主题的不同可以自行设置该数值，另外多余长度部分使用“&#8230;”代替。</p>
<div id="attachment_725" class="wp-caption aligncenter" style="width: 310px"><a href="http://zeuscn.net/wp-content/uploads/2009/12/wp-title-width.jpg"><img src="http://zeuscn.net/wp-content/uploads/2009/12/wp-title-width-300x130.jpg" alt="控制 WordPress 文章标题长度" title="点击放大" width="300" height="130" class="size-medium wp-image-725" /></a><p class="wp-caption-text">控制 WordPress 文章标题长度</p></div>
<p>其实我在控制文章摘要的时候也是使用的这个函数，比如我在 <a href="http://zeuscn.net/archives/2009/06/19/dz-theme-pro-cp-released.html" target="_blank">D&#038;Z Theme Pro CP</a> 主题的首页里使用的就是</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">mb_strimwidth</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span>apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">470</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;......&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>来输出470个字符长度的摘要，并过滤了 HTML 标记。</p>
<p>虽然这是个很简单的方法，但我相信它对主题制作者而言还是相当实用的 <img src='http://zeuscn.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p align=right>zEUS.</p>
<hr /><h2>日志评论</h2><ul><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://www.life-studio.cn' rel='external nofollow' class='url'>万戈</a> writes: 一般超长，我用overflow:hidden;哈哈～
摘要截断输出用mb_strimwidth很不错，已经用到主题上了，自我升级，谢谢老大</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://www.digglife.cn' rel='external nofollow' class='url'>摩摩诘</a> writes: Z兄的技术贴写得都很通俗易懂。</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://louishan.com/' rel='external nofollow' class='url'>Louis Han</a> writes: 如果题目中有英文或者符号，会不会被截断？</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 它不考虑字符串里是中文还是英文还是符号，全部都可以截断</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 呵呵，我觉得我比较啰嗦，想极力说得更明白 :-)</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: overflow:hidden 会把文字掐断，不是太美观，不过我以前也是用这个，呵呵</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://dogorgod.com/' rel='external nofollow' class='url'>Timer</a> writes: 实用！很久没看兄弟的技术型文章了，激动</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://www.mozin.org' rel='external nofollow' class='url'>默默</a> writes: 非常好，最近正好遇到了标题超长导致显示不正常的问题，非常感谢！</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 1日</a>, <a href='http://www.dgdxbxg.com/bb' rel='external nofollow' class='url'>大兴</a> writes: 实用，知识下！</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 2日</a>, <a href='http://wyshuo.com' rel='external nofollow' class='url'>星网</a> writes: ......我需不需要？问题是我还是不会~~~</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 2日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 基本上需要... 照着步骤做吧，其实很简单的...</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 2日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 呵呵，不客气 :-)</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 2日</a>, <a href='http://blogmars.com/' rel='external nofollow' class='url'>Mars</a> writes: 不错，学习了，不过，如果作者能在写的时候，就精简下标题，会更好。</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 7日</a>, <a href='http://www.jutoy.net' rel='external nofollow' class='url'>Jutoy</a> writes: 一般情况下用不到这么长的标题，哈哈……</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 8日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 有时候 CMS 主题需要这种方法 :-)</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 19日</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> writes: http://codex.wordpress.org/Function_Reference/wp_trim_excerpt</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2009年, 十二月 27日</a>, <a href='http://www.180life.cn/archives/73.html' rel='external nofollow' class='url'>如何控制 WordPress 文章标题的长度 | 180度生活</a> writes: [...] | zEUS.’Blog » 如何控制 WordPress 文章标题的长度（顺带测试一下超长的标题输出）&#8221; /&gt;     Trackback URL | Say [...]</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2010年, 一月 3日</a>, <a href='http://%/spzasibsk' rel='external nofollow' class='url'>Shadow</a> writes: <strong><a href="http://z7k.cinemajokes.ru" rel="nofollow"> </a><a href="http://qh3.cinemajokes.ru" rel="nofollow"></a><a href="http://g5d.cinemajokes.ru" rel="nofollow"> </a><a href="http://qs4.cinemajokes.ru" rel="nofollow"> </a>...</strong>

Норм<b><a href="http://g7k.cinemajokes.ru" rel="nofollow"> </a><a href="http://qa3.cinemajokes.ru" rel="nofollow"> </a><a href="http://aad.cinemajokes.ru" rel="nofollow"> </a><a href="http://fs4.cinemajokes.ru" rel="nofollow"> </a>...</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2010年, 二月 8日</a>, <a href='http://www.jfond.com' rel='external nofollow' class='url'>像风一样自由</a> writes: 学习了，很强大</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2010年, 二月 25日</a>, <a href='http://www.jfond.com' rel='external nofollow' class='url'>像风一样自由</a> writes: Q群不让加？

请教博主，侧边栏最新日志的标题截断该如何做呢？
期待解答</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2010年, 三月 19日</a>, <a href='http://www.linuxhobby.com' rel='external nofollow' class='url'>麦叔</a> writes: 这个可以用CSS来实现吧!</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2011年, 二月 19日</a>, <a href='http://www.22frame.com/blog' rel='external nofollow' class='url'>22frame</a> writes: 侧边栏的标题可以设置截断吗?</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2011年, 二月 19日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 可以的，原理类似，但是具体要看输出什么内容了，最新文章？随机文章？
最新留言的截断效果可以参见我的侧栏。</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2011年, 二月 25日</a>, <a href='http://www.52digital.com' rel='external nofollow' class='url'>明月登楼</a> writes: 哈哈，不错，谢谢了，这个方法最科学了！</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2011年, 六月 13日</a>, bpm100 writes: 加到什么地方呢？</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2011年, 七月 10日</a>, 星仔 writes: 謝謝啦，研究很久了</li><li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">2012年, 一月 18日</a>, <a href='http://www.swannwoodwork.com/' rel='external nofollow' class='url'>thanksgiving crafts for preschoolers and toddlers</a> writes: <strong>Super Website...</strong>

[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]...</li></ul><hr /><p>本文地址：<a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html">http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html</a>，转载原创文章请注明 <a href="http://zeuscn.net/">zEUScn.NET</a> ‖
      您可以直接 <a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html#comments"title="to the comments">发布评论</a>
      </p>
    <p>Copyright©<a href="%%blogurl%%">zEUScn.NET</a>.Some rights reserved.</p>
(Digital Fingerprint:<br /> 05538bd2e0492fe803256b5788cfa6fd)
	<ul class="st-related-posts">
	<li><a href="http://zeuscn.net/archives/2008/03/28/wp_list_bookmarks.html" title="wp_list_bookmarks 函数详解 (2008年, 三月 28日)">wp_list_bookmarks 函数详解</a> (31)</li>
	<li><a href="http://zeuscn.net/archives/2008/08/03/ie6-support-png.html" title="IE6 支持 PNG 格式图片的 CSS 滤镜写法 (2008年, 八月 3日)">IE6 支持 PNG 格式图片的 CSS 滤镜写法</a> (20)</li>
	<li><a href="http://zeuscn.net/archives/2008/03/23/ipple-lite-released.html" title="WordPress 主题模板：Ipple Lite (2008年, 三月 23日)">WordPress 主题模板：Ipple Lite</a> (154)</li>
	<li><a href="http://zeuscn.net/archives/2007/09/16/velle-elle.html" title="wordpress模板：VeLLe ELLe (2007年, 九月 16日)">wordpress模板：VeLLe ELLe</a> (7)</li>
	<li><a href="http://zeuscn.net/archives/2008/02/29/set-more-memory-size-for-xampp.html" title="解除 XAMPP 的 Memory 大小限制 (2008年, 二月 29日)">解除 XAMPP 的 Memory 大小限制</a> (8)</li>
	<li><a href="http://zeuscn.net/archives/2009/06/16/1st-trade-of-09-wordpress-tshirt.html" title="09’夏季 WordPress 文化衫第一批团购结束 (2009年, 六月 16日)">09’夏季 WordPress 文化衫第一批团购结束</a> (91)</li>
	<li><a href="http://zeuscn.net/archives/2007/10/31/amphion-comming.html" title="Amphion is Coming&#8230; (2007年, 十月 31日)">Amphion is Coming&#8230;</a> (22)</li>
	<li><a href="http://zeuscn.net/archives/2008/06/28/blog-seo-summing-up-part-one.html" title="博客SEO优化技巧总结（一） (2008年, 六月 28日)">博客SEO优化技巧总结（一）</a> (16)</li>
	<li><a href="http://zeuscn.net/archives/2007/11/10/making-another-wp-theme.html" title="又一个 WordPress 主题全力制作中&#8230; (2007年, 十一月 10日)">又一个 WordPress 主题全力制作中&#8230;</a> (9)</li>
	<li><a href="http://zeuscn.net/archives/2009/06/06/dz-theme-pro-control-pannel-online.html" title="D&#038;Z Theme Pro (Control Pannel) 线上测试 (2009年, 六月 6日)">D&#038;Z Theme Pro (Control Pannel) 线上测试</a> (126)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html/feed</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>给博客添加 Google 自定义搜索</title>
		<link>http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html</link>
		<comments>http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html#comments</comments>
		<pubDate>Thu, 18 Sep 2008 04:06:44 +0000</pubDate>
		<dc:creator>zEUS.</dc:creator>
				<category><![CDATA[Wordpress研究]]></category>
		<category><![CDATA[网络相关]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google 自定义搜索]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zeuscn.net/?p=493</guid>
		<description><![CDATA[何为“Google 自定义搜索”？ 创建根据自己的需求量身定制的搜索引擎：包括一个网站、多个网站或特定网页；将搜索框和搜索结果放入您自己的网站；自定义颜色和品牌以搭配您现有的网页。 Google 自定义搜索结果比博客默认的搜索结果要“更快，更准，更多”，无论是给读者还是管理员都提供了相当大的便利。 看猫猫用上了 Google 自定义搜索后我才想起来自己以前也搞过一个，不过不同的是之前我是让 Google 来托管搜索结果，而猫猫现在则是把搜索结果嵌入到了博客，恩，很好很强大，于是我自个儿就折腾了一下，将 Google 自定义搜索也嵌入到了博客里。具体效果您可以自行在搜索框内输入一个关键词（如：wordpress），然后回车，就能看到 Google 自定义搜索的结果了，也可以点击 这里 查看截图效果。 下面我就简单的介绍下如何为博客添加“Google 自定义搜索”功能。 访问：http://www.google.com/coop/cse/?hl=zh-CN 点击“创建自定义搜索引擎”的蓝色按钮，页面跳转之后根据页面上的要求填写各项基本信息，在最下方的“选择版本”中选择“标准版”： 点击“下一步”，页面跳转之后点击“完成”。然后回到 Google 自定义搜索首页，依次点击“管理您现有的搜索引擎”&#8211;“控制面板” 查看“基本信息”下的各个选项和“使用偏好”是否正确，点击“外观”后选择第一种无背景色的搜索框，该页面的下方可以设置“自定义搜索结果”的颜色样式，类似 Google Adsense 的广告设置，非常简单，设置成和博客相同的链接颜色即可，保存设置。 再点击“代码”，在“搜索结果托管选项”下选择“在您的网站上托管搜索结果：”&#8211;“iframe – 需要两个网页：一个网页提供搜索框，另一个提供结果”： “指定搜索结果详情”选项需要填写搜索结果所在的网页地址（例如我的是 http://zeuscn.net/search）： 该页面的下方提供了“搜索框代码”和“搜索结果代码”，记下这2段代码，接下来修改博客模板文件。 WordPress 博客模板里一般都会包含一个 searchform.php 的文件，该文件定义了博客的搜索框。我们打开这个文件，可以看到类似如下的代码： 1 2 3 &#60;form method=&#34;get&#34; class=&#34;searchform&#34; action=&#34;&#60;?php bloginfo('home'); ?&#62;/&#34;&#62; &#60;input type=&#34;text&#34; value=&#34;站内搜索&#34; name=&#34;s&#34; class=&#34;s&#34; onfocus=&#34;if (this.value == '站内搜索') [...]]]></description>
			<content:encoded><![CDATA[<p>何为“<a href="http://zeuscn.net/archives/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> 自定义搜索”？</p>
<blockquote><p>创建根据自己的需求量身定制的搜索引擎：包括一个网站、多个网站或特定网页；将搜索框和搜索结果放入您自己的网站；自定义颜色和品牌以搭配您现有的网页。</p></blockquote>
<p>Google 自定义搜索结果比博客默认的搜索结果要“更快，更准，更多”，无论是给读者还是管理员都提供了相当大的便利。</p>
<p>看<a href="http://www.pagemod.cn/" target="_blank" />猫猫</a>用上了 Google 自定义搜索后我才想起来自己以前也搞过一个，<span id="more-493"></span>不过不同的是之前我是让 Google 来托管搜索结果，而<a href="http://www.pagemod.cn/" target="_blank" />猫猫</a>现在则是把搜索结果嵌入到了博客，恩，很好很强大，于是我自个儿就折腾了一下，将  Google 自定义搜索也嵌入到了博客里。具体效果您可以自行在搜索框内输入一个关键词（如：<a href="http://zeuscn.net/archives/tag/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a>），然后回车，就能看到 Google 自定义搜索的结果了，也可以点击 <a href="http://pic.yupoo.com/zeuscn/62731635281a/15z1f3vi.jpg" rel="lightbox" />这里</a> 查看截图效果。</p>
<p>下面我就简单的介绍下如何为博客添加“<a href="http://zeuscn.net/archives/tag/google-%e8%87%aa%e5%ae%9a%e4%b9%89%e6%90%9c%e7%b4%a2" class="st_tag internal_tag" rel="tag" title="标签 Google 自定义搜索 下的日志">Google 自定义搜索</a>”功能。<br />
访问：<a href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank" />http://www.google.com/coop/cse/?hl=zh-CN</a><br />
点击“<strong>创建自定义搜索引擎</strong>”的蓝色按钮，页面跳转之后根据页面上的要求填写各项基本信息，在最下方的“<strong>选择版本</strong>”中选择“<strong>标准版</strong>”：</p>
<p align=center><img src="http://pic.yupoo.com/zeuscn/734816352ca4/medium.jpg" alt="Google 自定义搜索" title="Google 自定义搜索" class="img_border" /></p>
<p>点击“<strong>下一步</strong>”，页面跳转之后点击“<strong>完成</strong>”。然后回到 <a href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank" />Google 自定义搜索首页</a>，依次点击“<strong>管理您现有的搜索引擎</strong>”&#8211;“<strong>控制面板</strong>”</p>
<p align=center><img src="http://pic.yupoo.com/zeuscn/721386353028/pleby06q.jpg" alt="Google 自定义搜索" title="Google 自定义搜索" class="img_border" /></p>
<p>查看“<strong>基本信息</strong>”下的各个选项和“<strong>使用偏好</strong>”是否正确，点击“<strong>外观</strong>”后选择第一种无背景色的搜索框，该页面的下方可以设置“<strong>自定义搜索结果</strong>”的颜色样式，类似 Google <a href="http://zeuscn.net/archives/tag/adsense" class="st_tag internal_tag" rel="tag" title="标签 Adsense 下的日志">Adsense</a> 的广告设置，非常简单，设置成和博客相同的链接颜色即可，保存设置。<br />
再点击“<strong>代码</strong>”，在“<strong>搜索结果托管选项</strong>”下选择“<strong>在您的网站上托管搜索结果：</strong>”&#8211;“<strong>iframe – 需要两个网页：一个网页提供搜索框，另一个提供结果</strong>”：</p>
<p align=center><img src="http://pic.yupoo.com/zeuscn/8526263534cd/xt6k68tr.jpg" alt="Google 自定义搜索" title="Google 自定义搜索" class="img_border" /></p>
<p>“<strong>指定搜索结果详情</strong>”选项需要填写搜索结果所在的网页地址（例如我的是 <strong>http://zeuscn.net/search</strong>）：</p>
<p align=center><img src="http://pic.yupoo.com/zeuscn/238186353834/06a5uic5.jpg" alt="Google 自定义搜索" title="Google 自定义搜索" class="img_border" /></p>
<p>该页面的下方提供了“搜索框代码”和“搜索结果代码”，记下这2段代码，接下来修改博客模板文件。</p>
<p>WordPress 博客模板里一般都会包含一个 searchform.<a href="http://zeuscn.net/archives/tag/php" class="st_tag internal_tag" rel="tag" title="标签 php 下的日志">php</a> 的文件，该文件定义了博客的搜索框。我们打开这个文件，可以看到类似如下的代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;get&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;searchform&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('home'); ?&gt;</span></span>/&quot;&gt;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;站内搜索&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s&quot;</span> <span style="color: #000066;">onfocus</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if (this.value == '站内搜索') {this.value = '';}&quot;</span> <span style="color: #000066;">onblur</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if (this.value == '') {this.value = '站内搜索';}&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;GO&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></td></tr></table></div>

<p>和 Google 自定义搜索提供的“<strong>搜索框代码</strong>”进行比较：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://zeuscn.net/search&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cse-search-box&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cx&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;012316757526287753200:595_iqfdr6q&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cof&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FORID:11&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ie&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;UTF-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;q&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;31&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sa&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;搜索&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=zh-Hans&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>我将 Google 自定义搜索提供的“<strong>搜索框代码</strong>”中有，但是 searchform.php 中没有的代码添加到 searchform.php 中，然后另存为 google-searchform.php 文件，上传到主题目录下。修改后的代码如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;get&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;searchform&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://zeuscn.net/search&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cx&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;012316757526287753200:595_iqfdr6q&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cof&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FORID:11&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ie&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;UTF-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;站内搜索&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;q&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s&quot;</span> <span style="color: #000066;">onfocus</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if (this.value == '站内搜索') {this.value = '';}&quot;</span> <span style="color: #000066;">onblur</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if (this.value == '') {this.value = '站内搜索';}&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sa&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;GO&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=zh-Hans&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>其中我去掉了 Google 提供的搜索框的样式 <strong>id=”cse-search-box”</strong> 好让搜索框的样式更符合主题的效果。不少主题的搜索框都位于页面的头部（header），那么我们打开 header.php 文件，找到如下代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php-brief" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/searchform.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>将其修改为：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php-brief" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/google-searchform.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>注：此搜索框的样式可能需要略微调整样式。</p>
<p>接下来需要做一个“<strong>搜索结果页</strong>”，先在本地打开主题文件夹中的 page.php，在文件顶部代码的前面添加：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php-brief" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: Google自定义搜索结果
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>然后找到类似如下的代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;entry&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;?php the_content<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Continue reading &amp;raquo;'</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--/entry --&gt;</span></pre></td></tr></table></div>

<p>使用 Google 自定义搜索提供的“<strong>搜索结果代码</strong>”将其替换掉。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cse-search-results&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
  var googleSearchIframeName = &quot;cse-search-results&quot;;
  var googleSearchFormName = &quot;cse-search-box&quot;;
  var googleSearchFrameWidth = 600;
  var googleSearchDomain = &quot;www.google.com&quot;;
  var googleSearchPath = &quot;/cse&quot;;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.google.com/afsonline/show_afs_search.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>修改完毕，文件另存为：search_temp.php （需要是 <a href="http://zeuscn.net/archives/tag/utf-8" class="st_tag internal_tag" rel="tag" title="标签 utf-8 下的日志">utf-8</a> 的编码），FTP 上传至主题目录下。</p>
<p>进入 WordPress 后台，撰写一个新页面，命名为“搜索结果”，缩略名（slug name）为：search，页面模板选择刚刚上传的 “Google自定义搜索结果”（search_temp.php），发布该页面。<br />
此时你会发现这个页面出现在了博客导航菜栏里，一般来说我们不需要这个页面，所以就需要将其从导航栏中“隐藏”。进入 WordPress 后台，管理&#8211;页面，找到刚刚建立的“搜索结果”，将鼠标移动上去（不要点击），看浏览器状态栏的链接地址，地址的末尾有一个数字，此数字为该页面的 ID 号，例如我的是 491：</p>
<p align=center><img src="http://pic.yupoo.com/zeuscn/3215963544a2/bmbzudvh.jpg" alt="Google 自定义搜索" title="Google 自定义搜索" class="img_border" /></p>
<p>打开 header.php 文件，找到如下代码</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php-brief" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=menu_order&amp;depth=1&amp;title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>将其修改为：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php-brief" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=menu_order&amp;depth=1&amp;exclude=491&amp;title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><strong>exclude </strong>的值就是从 <strong>wp_list_pages() </strong>函数中去除指定的页面 ID 号。保存后回到首页，导航栏里就找不到“搜索结果”这个链接了。</p>
<p>大功基本告成，Google 自定义搜索的搜索框和结果页全部都嵌入到了博客里，也许还需要根据博客模板的样式稍作修改。<br />
现在你就可以直接进行搜索来看看效果了～ 以后凡是搜索的结果都会显示在 http://yourdomain/search 这个页面上，例如我的 http://zeuscn.net/search<br />
Google 自定义搜索 还能把你的 Google Adsense 嵌入到搜索结果中去，有兴趣的朋友不妨自己研究一下～<br />
Have fun <img src='http://zeuscn.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p align=right>zEUS.</p>
<hr /><h2>日志评论</h2><ul><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 18日</a>, <a href='http://gopherwood.info' rel='external nofollow' class='url'>wayne</a> writes: 这个不错, 还能减轻一下服务器的压力...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 18日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: :mrgreen: 呵呵，确实如此～～</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 18日</a>, <a href='http://myhou.org' rel='external nofollow' class='url'>MY-Hou</a> writes: 个个都用上Google了咯  :cool:</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 18日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 呵呵，这么好的搜索服务，不用的话实在太浪费了...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 18日</a>, <a href='http://www.freerainbow.cn' rel='external nofollow' class='url'>freesky</a> writes: 有很多博客都放了google得搜索，有空我也尝试一下！</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 19日</a>, <a href='http://wpfans.net.cn' rel='external nofollow' class='url'>mylaner</a> writes: 很久以前在水煮鱼上就看到了。</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 19日</a>, <a href='http://www.dogorgod.com/' rel='external nofollow' class='url'>dogorgod</a> writes: 有点复杂啊，我先不尝试了...现在看代码比较眼晕..</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 19日</a>, <a href='http://jobru.net' rel='external nofollow' class='url'>JoBru</a> writes: :mrgreen: 很棒啊，多谢了～！</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 21日</a>, <a href='http://www.wodidai.com' rel='external nofollow' class='url'>花果山寨</a> writes: 这个我以前也弄过，的确非常不错！</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 九月 21日</a>, <a href='http://www.eemir3.com' rel='external nofollow' class='url'>Yacca</a> writes: 搞搞嫌累......虽然是个不错的技巧</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 十月 30日</a>, <a href='http://www.charlestang.cn/why-and-how-to-integrate-google-to-blog.htm' rel='external nofollow' class='url'>为何以及如何整合Google搜索到WP博客 at Becomin' Charles</a> writes: [...] 【4】網生@誌 | zEUS.'Blog：《给博客添加 Google 自定义搜索》 ：这篇文章介绍了整合Google搜索的详细步骤，包括申请，修改代码，等等，并且给出了代码范例。可操作性很强。 [...]</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 十一月 4日</a>, <a href='http://changsay.com/' rel='external nofollow' class='url'>死的蚊</a> writes: 有个问题，能不能在搜索结果页中点击链接后默认在原页面打开，而不新建页面呢？</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 十一月 9日</a>, <a href='http://www.aiyanblog.cn' rel='external nofollow' class='url'>爱燕博客</a> writes: 这样修改之后，不知道有没有违反GG的政策？</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 十一月 9日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 不会呀，GG 提供这么人性化的功能，就是给咱们改的啊～</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2008年, 十二月 3日</a>, <a href='http://18tvb.com' rel='external nofollow' class='url'>mr wu</a> writes: 呵呵，已经做好了。</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 一月 23日</a>, <a href='http://www.oshares.cn' rel='external nofollow' class='url'>LinuxWin</a> writes: 站长，您好！我看了这篇文章，认为很有特色。想学，但却做不出来。菜鸟特请教，我用的是revolution church 2.0主题，没有searchform.php,同时，我想把搜索放在侧边栏里，试了几下，结果不行，不知哪里有问题。希望能指点一二，谢谢！</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 一月 25日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 不同的主题修改起来也不一样，你用的主题我没有看过，所以也无法提供帮助.. 很抱歉..</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 二月 26日</a>, <a href='http://www.zhaocheng.org.cn/' rel='external nofollow' class='url'>赵成</a> writes: qweqwqw</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 四月 25日</a>, <a href='http://ublog.net.ru/' rel='external nofollow' class='url'>Ublog.Net.Ru</a> writes: 终于学会了，留言对zEUS.表示感谢！</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 四月 25日</a>, <a href='http://penpenguanguan.com/2009/04/139_add-google-custom-search-to-your-blog.html' rel='external nofollow' class='url'>给博客添加 Google 自定义搜索 | 盆盆罐罐</a> writes: [...] 给博客添加 Google 自定义搜索：http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog/ [...]</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 四月 27日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 呵呵，不客气！</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 十二月 8日</a>, <a href='http://blog.cybercn.net' rel='external nofollow' class='url'>don</a> writes: 文章很有好；不过跟主题稍微不兼容</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 十二月 8日</a>, <a href='http://blog.cybercn.net' rel='external nofollow' class='url'>don</a> writes: 文章很好；不过跟主题稍微不兼容</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2009年, 十二月 8日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: 不兼容具体是指哪部分呢？</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 15日</a>, <a href='http://www.dancersplus.com/' rel='external nofollow' class='url'>michael jackson biography for children</a> writes: <strong>Recommended Websites...</strong>

[...]below you'll find the link to some sites that we think you should visit[...]...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 24日</a>, <a href='http://servinion.weebly.com' rel='external nofollow' class='url'>servinion</a> writes: <strong>Great website...</strong>

[...]we like to honor many other internet sites on the <a href="http://zeuscn.net/archives/tag/web" class="st_tag internal_tag" rel="tag" title="标签 web 下的日志">web</a>, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 25日</a>, <a href='http://PromiseProductionsUSA.com' rel='external nofollow' class='url'>Dallas Marketing</a> writes: <strong>Online Article…...</strong>

[...]The information mentioned in the article are some of the best available [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 26日</a>, <a href='http://community.atom.com/Post/James-Bond-Books/03EFBFFFF025821680008018434D5' rel='external nofollow' class='url'>James Bond Books</a> writes: <strong>Recommeneded websites...</strong>

[...]Here are some of the sites we recommend for our visitors[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 26日</a>, <a href='http://www.americanantigravity.com' rel='external nofollow' class='url'>American Antigravity</a> writes: <strong>Bing results...</strong>

While browsing Yahoo I found this page in the results and I didn't think it fit...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 27日</a>, <a href='http://www.colorado-unemployment.com/' rel='external nofollow' class='url'>colorado unemployment website</a> writes: <strong>Check this out...</strong>

[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 27日</a>, <a href='http://alabama.local.dirtcheappayday.com/in/sheffield/' rel='external nofollow' class='url'>Low Interest Payday Loans</a> writes: <strong>Related…...</strong>

[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 28日</a>, <a href='http://www.valueshop.co.uk/' rel='external nofollow' class='url'>inkjet cartridges</a> writes: <strong>Read was interesting, stay in touch…...</strong>

[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 28日</a>, <a href='http://www.artslant.com/ew/groups/show/447698' rel='external nofollow' class='url'>Search Inmates</a> writes: <strong>Visitor recommendations...</strong>

[...]one of our visitors recently recommended the following website[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 28日</a>, <a href='http://aacnwiki.org/index.php?title=User_talk:Sembto1234' rel='external nofollow' class='url'>article</a> writes: <strong>Recent Blogroll Additions…...</strong>

[...]usually posts some very interesting stuff like this. If you’re new to this site[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 28日</a>, <a href='http://www.quechup.com/blog/entry/view/id/876331' rel='external nofollow' class='url'>Sullair Air Compressor</a> writes: <strong>Superb website...</strong>

[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 28日</a>, <a href='http://www.iamsport.org/pg/blog/elijahsullivan33/read/1830877/europes-best-casino-hotels' rel='external nofollow' class='url'>Casino resorts in Europe</a> writes: <strong>Websites worth visiting...</strong>

[...]here are some links to sites that we link to because we think they are worth visiting[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 29日</a>, <a href='http://www.youtube.com/watch?v=4K3t-cfX9jU' rel='external nofollow' class='url'>Best Prenatal Massage NYC</a> writes: <strong>Blogs ou should be reading...</strong>

[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 29日</a>, <a href='http://billmyers0063241.blog.hr/2012/01/1629868283/celeste-hall.html' rel='external nofollow' class='url'>Celeste Hall Books</a> writes: <strong>Links...</strong>

[...]Sites of interest we have a link to[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 29日</a>, <a href='http://howtogetridofacneinoneday268.wordpress.com/2012/01/28/ways-to-get-rid-of-acne-in-only-eventually-the-secret-tips-which-have-allowed-me-for-stopping-acne-in-1-day/' rel='external nofollow' class='url'>acne</a> writes: <strong>Check this out...</strong>

[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://frankcomms.com/web/website-design-service' rel='external nofollow' class='url'>website design service essex</a> writes: <strong>Visitor recommendations...</strong>

[...]one of our visitors recently recommended the following website[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://www.whats-shakn.com/' rel='external nofollow' class='url'>App</a> writes: <strong>Related…...</strong>

[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://www.pokahontas.de' rel='external nofollow' class='url'>Burlesque Dessous</a> writes: <strong>Websites you should visit...</strong>

[...]below you’ll find the link to some sites that we think you should visit[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://uzernamezz.livejournal.com/' rel='external nofollow' class='url'>uzernamezz</a> writes: <strong>Blogs ou should be reading...</strong>

[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://myagarcia679.posterous.com/cash-for-cars-obtaining-the-most-for-the-vehi' rel='external nofollow' class='url'>cash for junk cars los angeles</a> writes: <strong>Websites we think you should visit...</strong>

[...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://community.atom.com/Post/Furniture-Packs--Why-and-Why-Not/03EFBFFFF0258A78F000801853945' rel='external nofollow' class='url'>Furniture packs Mazarron</a> writes: <strong>Websites you should visit...</strong>

[...]below you’ll find the link to some sites that we think you should visit[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://www.anti-spam.nu/spamfilter-pa-svenska/' rel='external nofollow' class='url'>spamfilter</a> writes: <strong>Related…...</strong>

[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://www.facebook.com/notes/build-lean-muscle-mass/tony-hortons-p90x-extreme-home-fitness-exercise-dvd-workout-program-review/242204622523536' rel='external nofollow' class='url'>home fitness workout</a> writes: <strong>Visitor recommendations...</strong>

[...]one of our visitors recently recommended the following website[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 30日</a>, <a href='http://www.securityguardtrainingdepot.com/security-training-courses/' rel='external nofollow' class='url'>security training courses</a> writes: <strong>You should check this out...</strong>

[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://chloesimms614870.webs.com/apps/blog/show/11999676-a-guide-for-marketing-and-advertising-using-leaflet-printing' rel='external nofollow' class='url'>leaflet distribution Manchester</a> writes: <strong>Recent Blogroll Additions…...</strong>

[...]usually posts some very interesting stuff like this. If you’re new to this site[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://www.vilago21.com/event/Business+collection+agencies+and+Playing+By+the+Rules+_+Knowledge+Is+Power/332428/profile' rel='external nofollow' class='url'>credit card debt</a> writes: <strong>Links...</strong>

[...]Sites of interest we have a link to[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://hannahrobinson801758.blog.hr/2012/01/1629880953/salmon-pate-recipe.html' rel='external nofollow' class='url'>recipes</a> writes: <strong>Recent Blogroll Additions…...</strong>

[...]usually posts some very interesting stuff like this. If you’re new to this site[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://futurestrading055.wordpress.com/2012/01/30/treasury-bonds/' rel='external nofollow' class='url'>Treasury Bonds</a> writes: <strong>Gems form the internet...</strong>

[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://hotelsnearukcities811.tumblr.com/post/16775056421/the-most-effective-uk-cities-to-make-your-hotel' rel='external nofollow' class='url'>hotels near uk cities</a> writes: <strong>Superb website...</strong>

[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://www.hugeyields.info' rel='external nofollow' class='url'>hugeyields</a> writes: <strong>Recent Blogroll Additions…...</strong>

[...]usually posts some very interesting stuff like this. If you’re new to this site[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://www.squirreltraining.co.uk' rel='external nofollow' class='url'>Marine Chua</a> writes: <strong>Sites we Like…...</strong>

[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 一月 31日</a>, <a href='http://longhairpictures.blogspot.com' rel='external nofollow' class='url'>pin up girl hair</a> writes: <strong>Websites we think you should visit...</strong>

[...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 1日</a>, <a href='http://robertmontiel469707.webs.com/apps/blog/show/12030787-choosing-the-suitable-furniture-which-reflects-your-property-and-yourself' rel='external nofollow' class='url'>contract furniture</a> writes: <strong>Online Article…...</strong>

[...]The information mentioned in the article are some of the best available [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 1日</a>, <a href='http://hotamateurcouple.com' rel='external nofollow' class='url'>Blog sex</a> writes: <strong>Cool sites...</strong>

[...]we came across a cool site that you might enjoy. Take a look if you want[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 1日</a>, <a href='http://action.ran.org/index.php?title=User:homelaserhairremoval223' rel='external nofollow' class='url'>Home Laser Hair Removal</a> writes: <strong>Recommeneded websites...</strong>

[...]Here are some of the sites we recommend for our visitors[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 2日</a>, <a href='http://www.motorsport.com/ferrari-challenge/news/scott-tucker-ready-for-toronto-event/' rel='external nofollow' class='url'>Scott Tucker Racing</a> writes: <strong>Sources...</strong>

[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 2日</a>, <a href='http://americanlemans.com/primary1.php?cat=driver%7C870' rel='external nofollow' class='url'>Scott Tucker Racing</a> writes: <strong>You should check this out...</strong>

[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 2日</a>, <a href='http://www.npr.org/templates/story/story.php?storyId=129195925' rel='external nofollow' class='url'>Scott Tucker Racing</a> writes: <strong>Gems form the internet...</strong>

[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 2日</a>, <a href='http://pennbadgleyweb.com/' rel='external nofollow' class='url'>Scott Tucker CBS</a> writes: <strong>Great website...</strong>

[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 3日</a>, <a href='http://www.hugeyield.us' rel='external nofollow' class='url'>passive income</a> writes: <strong>Online Article…...</strong>

[...]The information mentioned in the article are some of the best available [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 3日</a>, <a href='http://mrvending.net/index.php/2011/12/cordless-drill-brands/' rel='external nofollow' class='url'>check out here for more info</a> writes: <strong>Links...</strong>

[...]Sites of interest we have a link to[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 3日</a>, <a href='http://1000calorieadaydiet.com/' rel='external nofollow' class='url'>Justin Bieber Baby</a> writes: <strong>Great website...</strong>

[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 4日</a>, <a href='http://www.bankownedhomelistings.com' rel='external nofollow' class='url'>Bank Owned Homes</a> writes: <strong>Digg suggestion...</strong>

While checking out Digg today I noticed this...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 4日</a>, <a href='http://www.riskservers.net/?p=3437' rel='external nofollow' class='url'>football training</a> writes: <strong>Links...</strong>

[...]Sites of interest we have a link to[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 4日</a>, <a href='http://www.bpo-companies.com/appraisal.php' rel='external nofollow' class='url'>Appraisal Management Companies</a> writes: <strong>Related...</strong>

[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 4日</a>, <a href='http://www.bpo-university.com' rel='external nofollow' class='url'>broker price opinions</a> writes: <strong>Websites to visit...</strong>

[...]below you’ll find the link to some sites that we think you should visit[...]...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 5日</a>, <a href='http://www.articlecity.com/articles/recreation_and_sports/article_1562.shtml' rel='external nofollow' class='url'>sports training for speed and power sports</a> writes: <strong>You should check this out...</strong>

[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://isp.pembinatrails.ca/member/37948' rel='external nofollow' class='url'>Consolidating Your Debts</a> writes: <strong>Websites we think you should visit...</strong>

[...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://banknotegallery.blogspot.com' rel='external nofollow' class='url'>money</a> writes: <strong>Sources...</strong>

[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://gofreearticles.info/story.php?title=types-of-loans' rel='external nofollow' class='url'>unsecured loans</a> writes: <strong>Cool sites...</strong>

[...]we came across a cool site that you might enjoy. Take a look if you want[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://choiceconsolidation.com' rel='external nofollow' class='url'>credit card consolidation</a> writes: <strong>Online Article…...</strong>

[...]The information mentioned in the article are some of the best available [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://www.bud-rem.org.pl/' rel='external nofollow' class='url'>Pokrycia Dachowe</a> writes: <strong>Pokrycia Dachowe...</strong>

... sometimes I can't resist and link to ......</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://www.perfectdoorsuk.com' rel='external nofollow' class='url'>interior doors</a> writes: <strong>Websites worth visiting...</strong>

[...]here are some links to sites that we link to because we think they are worth visiting[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://www.articles411.com/article/Travel/Family-Destinations/59564-spend-your-holiday-in-luxury-villa-in-mougins-in-the-south-of-france.html' rel='external nofollow' class='url'>luxury villa France</a> writes: <strong>You should check this out...</strong>

[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://www.youtube.com/watch?v=vrKOdsQPPMo' rel='external nofollow' class='url'>aldara precio</a> writes: <strong>Awesome website...</strong>

[...]the time to read or visit the content or sites we have linked to below the[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 6日</a>, <a href='http://www.anglebuster.com/phpBB2/profile.php?mode=viewprofile&#038;u=811167' rel='external nofollow' class='url'>Yeast Infection Information</a> writes: <strong>Gems form the internet...</strong>

[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://www.dietpillsjudged.com/dietpills/proactol' rel='external nofollow' class='url'>Proactol Review</a> writes: <strong>Check this out...</strong>

[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://habib666.posterous.com/97137457' rel='external nofollow' class='url'>sell gold</a> writes: <strong>Gems form the internet...</strong>

[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://www.become-an-electrician.com/njatc.html' rel='external nofollow' class='url'>NJATC</a> writes: <strong>Great website...</strong>

[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://www.riflescopes.net' rel='external nofollow' class='url'>rifle scope</a> writes: <strong>Superb website...</strong>

[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://doorsavers.com' rel='external nofollow' class='url'>springfield door hangers</a> writes: <strong>Check this out...</strong>

[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://www.buckettrucksonline.com' rel='external nofollow' class='url'>cheap viagra</a> writes: <strong>Sources...</strong>

[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://www.vippleasuregirls.co.uk' rel='external nofollow' class='url'>escorts in london</a> writes: <strong>You should check this out...</strong>

[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://www.faithwriters.com/article-details.php?id=130611' rel='external nofollow' class='url'>Milo Hennen</a> writes: <strong>Awesome website...</strong>

[...]the time to read or visit the content or sites we have linked to below the[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://www.youtube.com/watch?v=gZlbwvD02-Q' rel='external nofollow' class='url'>Business Insurance Tampa</a> writes: <strong>Links...</strong>

[...]Sites of interest we have a link to[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 7日</a>, <a href='http://peterkphoto.com/client-resources/client-testimonials/' rel='external nofollow' class='url'>Montreal wedding photographer reviews</a> writes: <strong>Gems form the internet...</strong>

[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 8日</a>, <a href='http://www.personaltrainertools.com' rel='external nofollow' class='url'>fitness business and marketing</a> writes: <strong>Sites we Like…...</strong>

[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 8日</a>, <a href='http://articletrump.com/seo-terminology-5-items-to-learn-about-seo/' rel='external nofollow' class='url'>read more about seo</a> writes: <strong>Websites we think you should visit...</strong>

[...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 8日</a>, <a href='http://www.amazon.com/gp/product/B0075PD5V4' rel='external nofollow' class='url'>skate ski boot</a> writes: <strong>Sites we Like…...</strong>

[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 8日</a>, <a href='http://rakeatoufnvincehenza.newsvine.com/_news/2012/02/07/10343848-resume-guide' rel='external nofollow' class='url'>resume</a> writes: <strong>Sources...</strong>

[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 8日</a>, <a href='http://paininkidney.com/ksrr' rel='external nofollow' class='url'>pass kidney stones</a> writes: <strong>Websites worth visiting...</strong>

[...]here are some links to sites that we link to because we think they are worth visiting[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 9日</a>, <a href='http://www.youtube.com/watch?v=qWgmmAhMuHU' rel='external nofollow' class='url'>Scott Tucker Racing</a> writes: <strong>Websites worth visiting...</strong>

[...]here are some links to sites that we link to because we think they are worth visiting[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 9日</a>, <a href='http://musiccityinteractive.com/monday-funday-iphone%E2%80%99s-siri-virtual-assistant-vs-human-assistant/' rel='external nofollow' class='url'>Scott Tucker CBS</a> writes: <strong>Visitor recommendations...</strong>

[...]one of our visitors recently recommended the following website[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 9日</a>, <a href='http://thecoolmag.com/2011/06/french-montana-feat-rick-ross-wiz-khalifa-choppa-choppa-down-remix/' rel='external nofollow' class='url'>Scott Tucker CBS</a> writes: <strong>Websites we think you should visit...</strong>

[...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 9日</a>, <a href='http://www.PERSONALTRAINERCERTIFICATIONPROGRAM.COM' rel='external nofollow' class='url'>personal trainer certification</a> writes: <strong>Read was interesting, stay in touch…...</strong>

[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 9日</a>, <a href='http://www.quechup.com/blog/entry/view/id/946901' rel='external nofollow' class='url'>book publishing</a> writes: <strong>Related…...</strong>

[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]…...</li><li><a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">2012年, 二月 9日</a>, <a href='http://www.pennyauctioncustomers.com' rel='external nofollow' class='url'>zeek rewards log in</a> writes: <strong>Awesome website...</strong>

[...]the time to read or visit the content or sites we have linked to below the[...]…...</li></ul><hr /><p>本文地址：<a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html">http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html</a>，转载原创文章请注明 <a href="http://zeuscn.net/">zEUScn.NET</a> ‖
      您可以直接 <a href="http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html#comments"title="to the comments">发布评论</a>
      </p>
    <p>Copyright©<a href="%%blogurl%%">zEUScn.NET</a>.Some rights reserved.</p>
(Digital Fingerprint:<br /> 05538bd2e0492fe803256b5788cfa6fd)
	<ul class="st-related-posts">
	<li><a href="http://zeuscn.net/archives/2007/12/13/plans-of-wordpress-themes.html" title="WordPress 主题计划 (2007年, 十二月 13日)">WordPress 主题计划</a> (100)</li>
	<li><a href="http://zeuscn.net/archives/2008/02/13/wow_theme_updata.html" title="WOW Theme 08年2月更新 (2008年, 二月 13日)">WOW Theme 08年2月更新</a> (140)</li>
	<li><a href="http://zeuscn.net/archives/2008/11/26/javascript-drop-down-menu-for-dz-theme.html" title="给 D&#038;Z Theme 增加一个额外的悬浮菜单 (2008年, 十一月 26日)">给 D&#038;Z Theme 增加一个额外的悬浮菜单</a> (26)</li>
	<li><a href="http://zeuscn.net/archives/2007/04/03/fh-freedom-blue.html" title="wordpress模板 FH Freedom blue 0.2 (2007年, 四月 3日)">wordpress模板 FH Freedom blue 0.2</a> (10)</li>
	<li><a href="http://zeuscn.net/archives/2009/06/23/501.html" title="501 (2009年, 六月 23日)">501</a> (20)</li>
	<li><a href="http://zeuscn.net/archives/2008/11/23/a-little-project.html" title="近期完成的一个小小首页 (2008年, 十一月 23日)">近期完成的一个小小首页</a> (24)</li>
	<li><a href="http://zeuscn.net/archives/2007/10/15/more-text-modules.html" title="给 Widgets 增加更多的 TEXT 模块 (2007年, 十月 15日)">给 Widgets 增加更多的 TEXT 模块</a> (78)</li>
	<li><a href="http://zeuscn.net/archives/2008/04/11/iwordpress-platform.html" title="你会为 WordPress 中文化做些什么吗？ (2008年, 四月 11日)">你会为 WordPress 中文化做些什么吗？</a> (17)</li>
	<li><a href="http://zeuscn.net/archives/2009/03/14/busy-days.html" title="不加班的人生是不完整的&#8230; (2009年, 三月 14日)">不加班的人生是不完整的&#8230;</a> (28)</li>
	<li><a href="http://zeuscn.net/archives/2008/09/10/wordpress-category-icon.html" title="WordPress 技巧—显示分类图片 (2008年, 九月 10日)">WordPress 技巧—显示分类图片</a> (18)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://zeuscn.net/archives/2008/09/18/google-custom-search-for-your-blog.html/feed</wfw:commentRss>
		<slash:comments>101</slash:comments>
		</item>
		<item>
		<title>为什么IE浏览器查看网页源代码是乱码</title>
		<link>http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html</link>
		<comments>http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html#comments</comments>
		<pubDate>Tue, 19 Aug 2008 07:06:20 +0000</pubDate>
		<dc:creator>zEUS.</dc:creator>
				<category><![CDATA[网络相关]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[notepad]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[windows-xp]]></category>

		<guid isPermaLink="false">http://zeuscn.net/?p=469</guid>
		<description><![CDATA[答案必然让你恍然大悟，一语道破天机： 使用 IE 浏览器查看网页源代码时，IE 是直接调用的 XP 自带记事本（notepad），问题就显而易见了，记事本是不支持 UTF-8 编码的！而我们做博客，做网站一般都是使用的 UTF-8 编码，这样才使得我们的中文变成了乱码。 所以各位无需担心什么 IE 查看网页源代码乱码而影响网站收录之类的谣言，这本不是 IE 的错，我们无需怪罪与它&#8230; zEUS. 日志评论2008年, 八月 19日, 老N writes: 恩，懂了。notepad这个东西是ms迟迟没有更新的东西了。2008年, 八月 19日, fiorano writes: 我一直都是用UltraEdit做默认的打开工具 :cool:2008年, 八月 19日, loke writes: 沙发？那就用ff好了！ :mrgreen:2008年, 八月 19日, Yacca writes: notepad++...我一直用它.2008年, 八月 19日, 八度社区 writes: :mrgreen: 我用Emeditor编辑器,随时修改编码.比较方便2008年, 八月 19日, zEUS. writes: @老N：恩，M$ 实在太拽了... @fiorano：UE总是会在目录下生成一个备份文件，很烦这个... @loke：呵呵，但并毕竟使用 IE6 [...]]]></description>
			<content:encoded><![CDATA[<p><img align="right" class="img_border" src="http://pic.yupoo.com/zeuscn/6883660de5f1/custom.jpg" alt="IE查看源代码中文乱码" />答案必然让你恍然大悟，一语道破天机：</p>
<p>使用 <a href="http://zeuscn.net/archives/tag/ie" class="st_tag internal_tag" rel="tag" title="标签 ie 下的日志">IE</a> 浏览器查看网页源代码时，<a href="http://zeuscn.net/archives/tag/ie" class="st_tag internal_tag" rel="tag" title="标签 ie 下的日志">IE</a> 是直接调用的 XP 自带记事本（<a href="http://zeuscn.net/archives/tag/notepad" class="st_tag internal_tag" rel="tag" title="标签 notepad 下的日志">notepad</a>），问题就显而易见了，<strong>记事本是不支持 <a href="http://zeuscn.net/archives/tag/utf-8" class="st_tag internal_tag" rel="tag" title="标签 utf-8 下的日志">UTF-8</a> 编码的</strong>！而我们做博客，做网站一般都是使用的 UTF-8 编码，这样才使得我们的中文变成了乱码。</p>
<p>所以各位无需担心什么 IE 查看网页源代码乱码而影响网站收录之类的谣言，这本不是 IE 的错，我们无需怪罪与它&#8230;</p>
<p align=right>zEUS.</p>
<hr /><h2>日志评论</h2><ul><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 19日</a>, <a href='http://neolee.cn' rel='external nofollow' class='url'>老N</a> writes: 恩，懂了。notepad这个东西是ms迟迟没有更新的东西了。</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 19日</a>, <a href='http://www.gtalkme.com' rel='external nofollow' class='url'>fiorano</a> writes: 我一直都是用UltraEdit做默认的打开工具 :cool:</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 19日</a>, <a href='http://loke8.cn' rel='external nofollow' class='url'>loke</a> writes: 沙发？那就用ff好了！ :mrgreen:</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 19日</a>, <a href='http://www.eemir3.com' rel='external nofollow' class='url'>Yacca</a> writes: notepad++...我一直用它.</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 19日</a>, <a href='http://www.8deg.cn' rel='external nofollow' class='url'>八度社区</a> writes: :mrgreen: 
我用Emeditor编辑器,随时修改编码.比较方便</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 19日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: @老N：恩，M$ 实在太拽了...
@fiorano：UE总是会在目录下生成一个备份文件，很烦这个...
@loke：呵呵，但并毕竟使用 IE6 还是最多的
@Yacca：我直接 DreamWeaver ...</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 20日</a>, <a href='http://info.haifol.com' rel='external nofollow' class='url'>jogocun</a> writes: 是的，但是网页加载完全的情况下，查看源文件，一般不会是乱码~</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 20日</a>, <a href='http://zzjin.cn' rel='external nofollow' class='url'>ZZ</a> writes: 以前用老外模板的时候遇到过类似问题，一直没弄明白是怎么回事。
但是说是IE的错。。。可能不一定吧，你可以看看underone的主题，同样是UTF8，却没有乱码</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 20日</a>, <a href='http://www.pycsky.com' rel='external nofollow' class='url'>bts</a> writes: 看过留名</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 20日</a>, <a href='http://mifunny.info' rel='external nofollow' class='url'>LD</a> writes: windows是支持utf8的，换一个Notepad2就行了</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 20日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: @jogocun：这和加载网页没必要联系吧？
@ZZ：真的吗？我觉得不会吧... 除非它的模板不是使用的 UTF-8 而是 GB</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 八月 20日</a>, <a href='http://www.freerainbow.cn' rel='external nofollow' class='url'>freesky</a> writes: 我看自己的不是乱码啊！ :shock:</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 九月 5日</a>, <a href='http://www.dreamerblog.net' rel='external nofollow' class='url'>dreamer</a> writes: 以前真不知道</li><li><a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">2008年, 九月 5日</a>, <a href='http://zeuscn.net/' rel='external nofollow' class='url'>zEUS.</a> writes: @freesky：有的主题不是 UTF-8 编码的，用记事本看就不会是乱码了
@dreamer： :mrgreen:</li></ul><hr /><p>本文地址：<a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html">http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html</a>，转载原创文章请注明 <a href="http://zeuscn.net/">zEUScn.NET</a> ‖
      您可以直接 <a href="http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html#comments"title="to the comments">发布评论</a>
      </p>
    <p>Copyright©<a href="%%blogurl%%">zEUScn.NET</a>.Some rights reserved.</p>
(Digital Fingerprint:<br /> 05538bd2e0492fe803256b5788cfa6fd)
	<ul class="st-related-posts">
	<li><a href="http://zeuscn.net/archives/2007/01/29/whboy.html" title="熊猫烧香 (2007年, 一月 29日)">熊猫烧香</a> (3)</li>
	<li><a href="http://zeuscn.net/archives/2006/11/21/roguesoft.html" title="你做你的流氓，我玩我的电脑 (2006年, 十一月 21日)">你做你的流氓，我玩我的电脑</a> (5)</li>
	<li><a href="http://zeuscn.net/archives/2008/09/01/jiong-desktop.html" title="无语了～连桌面都囧了&#8230; (2008年, 九月 1日)">无语了～连桌面都囧了&#8230;</a> (16)</li>
	<li><a href="http://zeuscn.net/archives/2006/11/25/hdspace.html" title="释放更多硬盘空间 (2006年, 十一月 25日)">释放更多硬盘空间</a> (4)</li>
	<li><a href="http://zeuscn.net/archives/2008/03/31/about-blog-ad.html" title="博客广告的那些事儿 (2008年, 三月 31日)">博客广告的那些事儿</a> (19)</li>
	<li><a href="http://zeuscn.net/archives/2009/12/01/wordpress-title-width-defined.html" title="如何控制 WordPress 文章标题的长度（顺带测试一下超长的标题输出） (2009年, 十二月 1日)">如何控制 WordPress 文章标题的长度（顺带测试一下超长的标题输出）</a> (27)</li>
	<li><a href="http://zeuscn.net/archives/2006/11/25/c.html" title="给你的C：盘减减压 (2006年, 十一月 25日)">给你的C：盘减减压</a> (3)</li>
	<li><a href="http://zeuscn.net/archives/2008/08/20/go-to-hell-notepad-plus.html" title="抵制 NOTEPAD++ (2008年, 八月 20日)">抵制 NOTEPAD++</a> (117)</li>
	<li><a href="http://zeuscn.net/archives/2006/11/26/erased.html" title="删or不删？就看你的胆量了 (2006年, 十一月 26日)">删or不删？就看你的胆量了</a> (68)</li>
	<li><a href="http://zeuscn.net/archives/2007/05/13/vista.html" title="Vista界面仿真器 (2007年, 五月 13日)">Vista界面仿真器</a> (8)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://zeuscn.net/archives/2008/08/19/notpad-do-not-support-utf8.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

