TShopping

標題: Awstats 正常顯示搜尋引擎 UTF-8 關鍵字的方法 [打印本頁]

作者: woff    時間: 2010-6-3 11:54
標題: 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.

可以自行下載來手動安裝:
Encode Module
作者: 苏迟檀光    時間: 2013-11-10 01:00
寫得好啊 估計有馬甲




歡迎光臨 TShopping (http://www.tshopping.com.tw/) Powered by Discuz! X3.2