1 頁 (共 1 頁)

[問題]phpBB2相關語系檔轉成UTF-8後的錯誤。

發表於 : 2007-02-18 13:24
hollowaysxp
原本我的論壇是Big5編碼
後來轉成UTF-8後。相關外掛檔案也在中午也把檔案轉成UTF-8格式。

錯誤是這樣

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/sessions.php on line 254

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/sessions.php on line 255

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/page_header.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/page_header.php on line 487

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/page_header.php on line 488
很奇怪!明明只是用程式將檔案轉成UTF-8但就是變成這樣。
這應該是~在set_cookie前先輸出訊息或錯誤訊息~類似的警告~對嗎?

我也不知道該怎麼辦了 :roll:
還請大大到我的論壇看看
http://twspc.no-ip.info/forum/

發表於 : 2007-02-18 13:37
hollowaysxp
把includes/sessions.php 轉成UTF-8變成這樣

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/sessions.php on line 254

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/sessions.php on line 255

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/page_header.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/page_header.php on line 487

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/page_header.php on line 488

發表於 : 2007-02-18 15:10
心靈捕手
這是典型轉 utf-8 編碼, 因為加了 BOM 所出現的錯誤.

建議您:
存檔時, 不要加入 BOM.
language/lang_chinese_traditional_taiwan/lang_stockmarket.php
includes/sessions.php

參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=230924#230924

發表於 : 2007-02-18 15:24
hollowaysxp
那已經轉了怎麼辦?還有機會恢復嗎?

補上,感謝大大我已經恢復了。
感謝,感謝。

我先把原本的轉成big5再來一次轉utf-8就OK了~

順便一問,我上次有用一個phpBB2.0.21自己升級成phpBB2.0.22後
首頁上面語系檔也是發生這問題,當時我想說怎麼會錯誤就算了。

當時我是用記事本打開phpBB2.0.21->phpBB2.0.22將差異檔案升級的。
用記事本儲存成UTF-8格式,也是發生這種事。

不然大家都用哪套文字編輯程式都沒問題?UE?Notepad2?

發表於 : 2007-02-18 20:57
chiouss
hollowaysxp 寫:當時我是用記事本打開phpBB2.0.21->phpBB2.0.22將差異檔案升級的。
用記事本儲存成UTF-8格式,也是發生這種事。

不然大家都用哪套文字編輯程式都沒問題?UE?Notepad2?
記事本會加 BOM...
不管你用哪套,可以選不要加 BOM 的就好。站上比較多人建議的是 EmEditor 和 ConvertZ,實際上還有很多也有這種功能就是了。