MozTW 討論區 https://forum.moztw.org/ |
|
解決 Google 搜尋的亂碼問題 https://forum.moztw.org/viewtopic.php?f=14&t=2342 |
第 1 頁 (共 1 頁) |
發表人: | nakeho [ 2004-04-23, 11:21 ] |
文章主題 : | 解決 Google 搜尋的亂碼問題 |
借用 google_tw.src 做出的 google_utf8.src ... ![]() 代碼: # Mozilla/Google plug-in by amitp@google.com
<search name="Google (UTF-8)" description="Google Search for Traditional Chinese" method="GET" action="http://www.google.com/search" # queryEncoding 和 queryCharset 是指在 Mozilla 中送出搜尋字串所使用的編碼。 queryEncoding="UTF-8" queryCharset="UTF-8" # update="http://moztw.org/dl/google_tw.src" # updateCheckDays=30 > <input name="sourceid" value="mozilla-search"> <input name="hl" value="zh-TW"> # input name="ie" 是指定 Google 接收到搜尋字串的編碼。 <input name="ie" value="UTF-8"> <input name="oe" value="UTF-8"> <input name="q" user> # 這裡以下只有在 Mozilla 的「資訊方塊列」中才有用。 <interpret charset = "UTF-8" resultEncoding = "UTF-8" browserResultType="result" resultListStart="<!--a-->" resultListEnd="<!--z-->" resultItemStart="<!--m-->" resultItemEnd="<!--n-->" > </search> 基本上修改 queryEncoding 和 queryCharset 為 UTF-8,Google 加上一個 <input name="ie" value="UTF-8"> 參數即可。這樣用日文 Ime 輸入日文也能正常查詢喔。 想要更深入瞭解 mozilla search plugin 的運作方式,請參考mycroft網站的說明文件。 順帶一提,這些 search plugin 是放在 [Mozilla或firefox安裝目錄]\searchplugins 。 |
發表人: | nakeho [ 2004-04-23, 11:58 ] |
文章主題 : | |
改成 utf-8 不是沒有缺點.... Mozilla 的資訊方塊列中的顯示結果會爛掉... 這個問題早已列入 bugzilla 中,但仍沒有解決... |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |