不必每個檔案都轉 UTF-8,只要將 phpBB 的語系檔轉為 UTF-8 就可以了,不過一定要用 ALF 所設計的
ConvertZ 這個軟體轉 UTF-8,不然首頁會出現類似如下的錯誤訊息,而且也將無法登入後台管理:
Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 470
Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 476
Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 477
遇到上述狀況的話,只要將你的編碼轉回 ANSI 再使用 ConvertZ 轉為 UTF-8 就解決了。
並且要修正語系檔裡的 lang_main.php 的
$lang['ENCODING'] = 'Big5';
改為
$lang['ENCODING'] = 'UTF-8';
參考資料:
竹貓星球討論串
Trackback Address :: http://blog.raienet.com/trackback/38