Neo's Blog

首頁 相本 討論 書籤

分類目錄
本站日誌 (51)
碎碎唸啦 (173)
網站架設 (84)
程式設計 (161)
軟體使用 (69)
電子商務 (126)
經營奇想 (48)
基金理財 (11)
聰明消費 (87)
電影心得 (47)
開放原碼 (16)
工作記錄 (2)
毛毛小記 (9)
就是不同 (2)




歷史資料
 




May 31, 2005
Awstats 正常顯示搜尋引擎 UTF-8 關鍵字的方法

這個應該不是新聞了,在 Awstats ChangeLog 就有寫到 6.0 開始加入 decodeUTFkeys 這個 plugin 來處理搜尋引擎的 UTF8 關鍵字。

使用的方法也很簡單,在網站的設定檔 awstats.xxx.conf 裡面找到 :

#LoadPlugin="decodeutfkeys"

把# 字註解去掉就可以了。

但是要注意的是,這個 plugin 有使用到 Perl 的 Encode Module,如果系統沒有的話會出現下列的訊息:

Error: Plugin load for plugin 'decodeutfkeys' failed with return code: 
Error: Can't locate Encode.pm in @INC (@INC 
contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 
/usr/local/lib/site_perl . ./lib ./plugins) at (eval 1) line 1. 

可以自行下載來手動安裝:
http://search.cpan.org/~dankogai/Encode-2.10/Encode.pm

 
由 Neo 發表於 May 31, 2005 03:55 AM 收進你的MyShare個人書籤  


Copyright 2005 Neo's Blog All rights reserved.