參考網站:
讓 AWStats 顯示 UTF-8 繁體中文 « Jamyy’s Weblog
1. 將 big 5 繁體中文語系檔轉成 utf-8
# cd /usr/share/awstats/lang
# cat awstats-tw.txt | sed -e ‘s/big5/utf-8/’ | iconv -f big5 -t utf8 > awstats-tw-utf8.txt[@more@]
2. 修改 /usr/share/awstats/wwwroot/cgi-bin/awstats.pl
# cp /usr/share/awstats/wwwroot/cgi-bin/awstats.pl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl.$(date +%F)
# sed -i ‘s/’tw’/’tw-utf8’/2’ /usr/share/awstats/wwwroot/cgi-bin/awstats.pl
3. 修改 /etc/awstats 目錄下設定檔
# sed -i ‘/Lang/s/auto/tw-utf8/’ /etc/awstats/*.conf
4. 重新產生畫面
# /usr/share/awstats/wwwroot/cgi-bin/awstats.pl –update –config=abc.tces.ilc.edu.tw
# /usr/share/awstats/tools/awstats_updateall.pl now