第 1 頁 (共 1 頁)
[問題]若用簡體發表主體,主題變亂碼
發表於 : 2004-11-28 00:29
由 al
請教各位大大,
小弟第一次裝phpbbs2,論壇現屬測試階段,若用若用簡體發表主體,主題變亂碼,還有用簡體註冊帳號,帳號出來也是亂碼。但是文章內容和版面卻都可以用簡體,請問該如何處理,在竹貓的測試版試過,發現在竹貓是正常。
http://phpbb-tw.net/phpbb/viewtopic.php?t=30172
●架設主機作業系統:Linux(RedHat)
●您的上網方式:CABLE (
http://www.lsc.net.tw)。
●您安裝的程式:Apache + php + MySql
●phpBB2 版本:phpBB (2.0.11 正体中文)。
●domain(網域名稱) :
www.posart.com
●phpBB2 連結網址:
http://www.potsart.com/forum/
謝謝
發表於 : 2004-11-28 00:36
由 神川小羽
請教一下 phpbbs2是哪家的版本?
最近越來越多種了 快搞不清楚了 不過 正常來說 如果你用的不是PHPBB
而是其他的版本 像是PHPBB? PHPBB?? PHPBB??? 那你就要去該版本\r
的開發作者網站問唷~~
發表於 : 2004-11-28 00:36
由 flower
請搜尋 多國語言修正
或是看版上置頂的文章

[Windows]
發表於 : 2004-11-28 01:20
由 al
樓上打錯了,是phpbb2,抱歉。
試過下面的方式,但是還是沒有成功
代碼: 選擇全部
##############################################################
## MOD Title: Multi-Language Fix
## MOD Author: Scorpion <formosa@ms20.url.com.tw> http://ibf.myweb.hinet.net/
## Update to 2.0.10: WeiChou
## Conflation: William Leung <admin@ke5475.net> http://ke5475.net
## MOD Description: Fix the display problems on multi-language
## MOD Version: 2.0.10
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit: 7
## login.php
## posting.php
## includes/functions.php
## includes/functions_post.php
## includes/usercp_register.php
## includes/bbcode.php
## admin/admin_users.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
$username = isset($HTTP_POST_VARS['username']) ? trim(htmlspecialchars($HTTP_POST_VARS['username'])) : '';
#
#-----[ REPLACE WITH ]----------------------------------
#
$username = isset($HTTP_POST_VARS['username']) ? str_replace("&","&",trim(htmlspecialchars($HTTP_POST_VARS['username']))) : '';
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$poll_options = array();
if ( !empty($HTTP_POST_VARS['poll_option_text']) )
#
#-----[ BEFORE, ADD ]-----------------------------------
#
$subject = ereg_replace("&","&",$subject);
$message = ereg_replace("&","&",$message);
$poll_title = ereg_replace("&","&",$poll_title);
#
#-----[ FIND ]------------------------------------------
#
$poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text)));
#
#-----[ REPLACE WITH ]----------------------------------
#
$poll_options[$option_id] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($option_text))));
#
#-----[ FIND ]------------------------------------------
#
$poll_options[] = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text'])));
#
#-----[ REPLACE WITH ]----------------------------------
#
$poll_options[] = ereg_replace("&","&",htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text']))));
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
$user = trim(htmlspecialchars($user));
#
#-----[ REPLACE WITH ]----------------------------------
#
$user = str_replace("&","&",trim(htmlspecialchars($user)));
#
#-----[ OPEN ]------------------------------------------
#
發表於 : 2004-11-28 08:56
由 webspirit
發表於 : 2004-11-28 14:17
由 al
感謝webspirit兄的幫忙,兄提供的方式,使用後問題可以解決了。
發表於 : 2004-11-28 14:43
由 webspirit
呵呵,恭喜
謝謝天霜大吧 ^^
發表於 : 2005-03-15 21:17
由 g53123