我安装了中文smf后,系统平台等所有项目都显示中文正常。但一旦用户自己修改主题或是发帖后就变成了???一系列乱码。不知道各位高手以前是否遇到过同样的问题。敬请赐教!谢谢!
應該是 database 的編碼設定不正確,
個人經驗.
要怎么设啊,
修改 /index.php, /SSI.php ,把 @mysql_query('SET NAMES UTF8') 加到 mysql_connect 之後的位置上就行了。
给我感觉是语言没选好```
Quote from: 觉悟的乌鸦 on June 25, 2007, 08:28:38 PM
给我感觉是语言没选好```
語言的設定問題,應該不會造成問號(?)的結果呈現. 會是雜七雜八的蚯蚓.
i have same problem, and even if i modify the files as suggested, after log-in , the display only become an empty page?!?
我也遇到類似問題 >:(,連版面與類別名稱都無法以中文輸入。
提供兩個截圖做參考。
(http://xs217.xs.to/xs217/07292/20070718_B001.png)
這是更名為中文以後的現象。如圖可見系統其餘部分是顯示中文。
(http://xs117.xs.to/xs117/07292/20070718_B002.png)
這是 SSI.php,其中已經加入各位所說的設定(如紅框)
(http://xs117.xs.to/xs117/07292/20070718_B003.png)
這是 index.php的設定。(更動部分如紅框)
請各位指點為何會這樣?
SMF 新手上
再多嘴一下;下列是我資料庫關於語系的參數。
(http://xs217.xs.to/xs217/07292/20070718_B004.png)
請各位指教。
SMF Newbie
語言的設定問題,應該不會造成問號(
現在的情況看來是,本機端拋出正確字元後,在進入db與從db中讀出的階段造成編碼錯誤。
所以明明打的是「大家發財」,由db中讀回的時候卻變成了四個問號。
此問題已解決。
也許因為我是經由 Fantastico 安裝,所以沒有太多細部設定。SMF本身預設對 UTF-的支援也並未開啟。
在參考其他語言區資料後,請參閱此頁:("http://www.simplemachines.org/community/index.php?topic=166743.0")
在執行過該 "Delete from..." SQL 後,管理介面的確出現「將資料庫轉換為 UTF-8」的選項。
在跟隨此網頁("http://docs.simplemachines.org/index.php?topic=865.0")設定後,系統的帳號名稱以及版名與帖名都可以用中文正常顯示。
多謝板上辛苦的大大!
SMF Newbie
you still have latin1 character for mysql.
put this in your mysqld section of my.cnf
default-character-set=utf8
or
character-set-server=utf8
I believe new mysql version uses character-set-server, but can't confirm.
Quote from: CapriSkye on July 18, 2007, 12:32:29 AM
you still have latin1 character for mysql.
put this in your mysqld section of my.cnf
default-character-set=utf8
or
character-set-server=utf8
I believe new mysql version uses character-set-server, but can't confirm.
Dear CapriSkye:
Thank you for the suggestion. But as I am only a renter of this web space, I can't touch the mysql settings. ^^
But thank you for remind me that.
SMF NewBie.
shall we have a fantastico admin guild for using chi-utf? so it get more easy to follow in the very beginning?
安装的时候如果是utf-8的选上那个强制utf-8的选项。
Quote from: buchum on June 01, 2006, 11:35:08 AM
我安装了中文smf后,系统平台等所有项目都显示中文正常。但一旦用户自己修改主题或是发帖后就变成了???一系列乱码。不知道各位高手以前是否遇到过同样的问题。敬请赐教!谢谢!
I encountered the same problem with my installation. With the same installing mechanism, my phpbb works fine...
現在的情況看來是,本機端拋出正確字元後,在進入db與從db中讀出的階段造成編碼錯誤。
所以明明打的是「大家發財」,由db中讀回的時候卻變成了四個問號。