默认情况下,从搜索栏中键入关键词,查询所得的结果为英文的。这不太适应我的习惯。我要改!
通过查看about:config和search.rdf文件,发觉关键在于google.src文件。
原始的google.src文件,在%installpath%\searchplugins下:
# Mozilla/Google plug-in by amitp+mozilla@google.com
<search
name="Google"
description="Google Search"
method="GET"
action="http://www.google.com/search"
update="http://www.google.com/mozilla/google.src"
updateCheckDays=1
queryEncoding="utf-8"
queryCharset="utf-8"
>
<input name="q" user>
<inputnext name="start" factor="10">
<inputprev name="start" factor="10">
<input name="ie" value="utf-8">
<input name="oe" value="utf-8">
<interpret
browserResultType="result"
charset = "UTF-8"
resultListStart="<!--a-->"
resultListEnd="<!--z-->"
resultItemStart="<!--m-->"
resultItemEnd="<!--n-->"
>
</search>
更改后的google.src:
# Mozilla/Google plug-in by amitp+mozilla@google.com
<search
name="Google"
description="Google Search"
method="GET"
action="http://www.google.com/search"
update="http://www.google.com/mozilla/google.src"
updateCheckDays=1
queryEncoding="gb2312"
queryCharset="gb2312"
>
<input name="q" user>
<inputnext name="start" factor="10">
<inputprev name="start" factor="10">
<input name="ie" value="gb2312">
<input name="oe" value="gb2312">
<input name="hl" value="zh-CN">
<input name="inlang" value="zh-CN">
<input name="newwindow" value="1">
<input name="lr" value="lang_zh-CN">
<interpret
browserResultType="result"
charset = "gb2312"
resultListStart="<!--a-->"
resultListEnd="<!--z-->"
resultItemStart="<!--m-->"
resultItemEnd="<!--n-->"
>
</search>
关键是把所有的utf-8都改为了gb2312。并添加了如下内容:
<input name="hl" value="zh-CN">
<input name="inlang" value="zh-CN">
<input name="newwindow" value="1">
<input name="lr" value="lang_zh-CN">