1 頁 (共 1 頁)

[問題]公告條變亂碼

發表於 : 2006-02-26 16:30
preprice
問題外掛:滾動公告條
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... highlight=
使用版本:phpBB 2.0.19
網站位置:http://tw-basketball.90megs.com/phpBB2/index.php
狀況描述:
安裝完之後網站上看到中文字變成亂碼



我有爬過文,可是還是不知道怎麼處理

發表於 : 2006-02-26 16:47
~倉木麻衣~
開啟news.html
在<head>之後加上這句

代碼: 選擇全部

<meta http-equiv="Content-Type" content="text/html; charset=big5">

發表於 : 2006-02-26 16:53
preprice
~倉木麻衣~ 寫:開啟news.html
在<head>之後加上這句

代碼: 選擇全部

<meta http-equiv="Content-Type" content="text/html; charset=big5">
還是一樣耶...
跟放的位置有關係嗎?
我是把news.html放在phpBB2下面這樣對嗎?

發表於 : 2006-02-26 18:31
~倉木麻衣~
發現讓人吐血的狀況
此空間不接受使用者上傳.htaccess就算了, 還不理會你html檔裡的charset設定
但是如果將副檔名改成.php, 就可以接受charset的值
所以, 請你開啟templates/你使用的風格/index_body.tpl
將這一行的news.html
<!-- 公告條 --><iframe marginwidth=0 marginheight=0 src='news.html' frameborder=0 width='100%' scrolling=no height=20>
</iframe><BR /><!-- 公告條 -->
改成news.php
<!-- 公告條 --><iframe marginwidth=0 marginheight=0 src='news.php' frameborder=0 width='100%' scrolling=no height=20>
</iframe><BR /><!-- 公告條 -->
然後再將phpBB2目錄底下的news.html也改成news.php

當然了, 請記得在news.php檔的<head>之後加上

代碼: 選擇全部

<meta http-equiv="Content-Type" content="text/html; charset=big5">

發表於 : 2006-02-26 20:51
preprice
~倉木麻衣~ 寫:發現讓人吐血的狀況
此空間不接受使用者上傳.htaccess就算了, 還不理會你html檔裡的charset設定
但是如果將副檔名改成.php, 就可以接受charset的值
所以, 請你開啟templates/你使用的風格/index_body.tpl
將這一行的news.html
<!-- 公告條 --><iframe marginwidth=0 marginheight=0 src='news.html' frameborder=0 width='100%' scrolling=no height=20>
</iframe><BR /><!-- 公告條 -->
改成news.php
<!-- 公告條 --><iframe marginwidth=0 marginheight=0 src='news.php' frameborder=0 width='100%' scrolling=no height=20>
</iframe><BR /><!-- 公告條 -->
然後再將phpBB2目錄底下的news.html也改成news.php

當然了, 請記得在news.php檔的<head>之後加上

代碼: 選擇全部

<meta http-equiv="Content-Type" content="text/html; charset=big5">
可以了....
謝謝喔