對這文章發表回應
發表限制: 非會員 可以發表
發表者: 冷日 發表時間: 2008/8/25 9:30:05
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
原文出處:Neo's Blog