1 頁 (共 1 頁)

[問題] [問題] 關於phpbb2011網頁出現亂碼如何解決

發表於 : 2005-01-22 03:10
minotaur
http://phpbb-tw.net/phpbb/viewtopic.php?t=30085

看過也改了,可是進入後台呈現的還是亂碼耶,如下圖

http://220.134.21.39/Untitled.bmp

爬過很多文,但不知哪個是正式2011版用的
所以也就不敢亂改\r

能否請教各位大大該如何解決

發表於 : 2005-01-26 21:55
Mac
看不到圖

~Mac

發表於 : 2005-01-27 19:33
bebe2803
我之前有亂碼是在 apache 的 httpd.conf 改的...

\Apache2\conf 內的 httpd.conf

找 AddDefaultCharset

把那句改成

AddDefaultCharset big5

(雖說不建議改 httpd.conf 但這方法真的很有效)

另一個找到關於 code 的 mod

代碼: 選擇全部

############################################################## 
## MOD Title: Default Encoding
## MOD Author: billytcf <billytcf@hotmail.com> (N/A) N/A
## MOD Description: This mode changes the default encoding of phpBB2 to utf-8
## MOD Version: 1.0.0
## 
## Installation Level: Easy 
## Installation Time: 2 Minutes 
## Files To Edit:  
##		language/lang_english/lang_main.php 
## Included Files: n/a 
############################################################## 
## 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/ 
############################################################## 
## Author Notes: The default encoding of phpBB2 is iso-8859-1, this causes problem when displaying chinese characters, this mode changes the default behaviour.
## 
############################################################## 
## MOD History: 
## 
##   2004-12-11 - Version 1.0.0
##      -  The initial release, support phpBB 2.0.11, not tested on others
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$lang['ENCODING'] = 'iso-8859-1';

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
$lang['ENCODING'] = 'utf-8';

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 

你找的資料夾當然不是 english 而是中文那個

現在簡體字, 日文等也可以同時顯示(同一篇文有那 3 種文字也可以...), 又沒有繁體字亂碼...