1 頁 (共 1 頁)

[問題]簡體字亂碼

發表於 : 2003-07-25 02:45
NICO
●架設主機作業系統:Windows 2000 Server
●快速架站程式:Appserv
●您的上網方式:ADSL
●您安裝的程式:Apache + IIS +php + MySql
●您的 phpBB2 版本:phpBB 2.0.4

請問一下有人打簡體字在我的討論區
卻出現了亂碼!!
有人有遇到這個問題嗎??
請問該怎麼解決!!
我有看到2.0.1的多語言修正
但是我適用的是2.0.4
請問這該怎麼處理!!
請告訴我 謝謝!!

Re: [問題]簡體字亂碼

發表於 : 2003-07-25 05:03
依夢兒
NICO 寫:我有看到2.0.1的多語言修正
但是我適用的是2.0.4
這次就先直接找給你了,
下次請記得「先搜尋,再發問」。 ;-)

http://phpbb-tw.net/phpbb/viewtopic.php?t=13332

發表於 : 2003-07-25 11:30
NICO
謝謝!!對不起!!@@

發表於 : 2003-07-28 14:14
NICO

代碼: 選擇全部

includes\usercp_register.php
使用者名稱 (2.0.4 新產生的問題)
108 列
$$var = trim(htmlspecialchars($HTTP_POST_VARS[$param]));
改為\r
$$var = str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS[$param])));
我的裡面的是\r
$$var = trim(strip_tags($HTTP_POST_VARS[$param]));

代碼: 選擇全部

includes\functions_post.php
發表之後的投票選項 (2.0.4 新產生的問題)
331 列
$option_text = str_replace("\'", "''", htmlspecialchars($option_text));
在其下面加上
$option_text = str_replace("&","&", $option_text);
我裡面的是\r
$option_text = str_replace("\'", "''", $option_text);

代碼: 選擇全部

admin\admin_users.php
從管理控制台編輯會員資料時,來自、 職業、 興趣三個欄位的多國文字顯示問題
741 列
$location = htmlspecialchars($this_userdata['user_from']);
$occupation = htmlspecialchars($this_userdata['user_occ']);
$interests = htmlspecialchars($this_userdata['user_interests']); 
改為\r
$location = ereg_replace("&","&",htmlspecialchars($this_userdata['user_from']));
$occupation = ereg_replace("&","&",htmlspecialchars($this_userdata['user_occ']));
$interests = ereg_replace("&","&",htmlspecialchars($this_userdata['user_interests']));
我的是\r
$location = $this_userdata['user_from'];
$occupation = $this_userdata['user_occ'];
$interests = $this_userdata['user_interests'];



跟上面有點不太一樣耶!!
還是我裝的是書裡面的四合一版本\r
2.0.2升級到2.0.3再升級到2.0.4的關係阿??
那我上面有需要修改嗎??
然後我跟他們不一樣的地方也要改成一樣嗎??
新手努力中!!請老手多多幫忙!!
謝謝大家!!

發表於 : 2003-07-28 18:34
NICO
請問這個問題有人有辦法嗎?
我這三個還沒改\r
有人留言後我在資料庫有看到資料
但是在討論區卻不會顯示!!@@


救命阿!!我的網站掛了三天了!!
一直研究不出來!!@@

發表於 : 2003-07-28 19:57
godbless
你的是2.0.2升級上去的!
你要用2.0.2的修正!

請用這篇!
http://phpbb-tw.net/phpbb/viewtopic.php?t=7987

發表於 : 2003-07-28 20:04
NICO
請問那我應該是用那篇的修正一個一個修正
還是直接下載2.0.3的修正檔直接覆蓋尼??

發表於 : 2003-07-28 20:13
godbless
請隨意~建議自己改!