找回密碼
 註冊
搜索
查看: 2221|回復: 2

[分享] Awstats 正常顯示搜尋引擎 UTF-8 關鍵字的方法

  [複製鏈接]
發表於 2010-6-3 11:54:16 | 顯示全部樓層 |閱讀模式
 
Push to Facebook
這個應該不是新聞了,在 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:03 | 顯示全部樓層
寫得好啊 估計有馬甲
版主招募中
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|小黑屋|TShopping

GMT+8, 2025-4-30 23:44 , Processed in 0.020690 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回復 返回頂部 返回列表