FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Codes to judge Simplified Chinese characters(GB2312)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
³¹µ×¸ã¶¨¶àÓïÑÔ [message #23650 is a reply to message #23218] Fri, 25 March 2005 05:56 Go to previous message
linxiaoming is currently offline  linxiaoming   China
Messages: 6
Registered: March 2005
Karma:
Junior Member
ÎÒÓÐÁËÒ»¸ö¸üºÃµÄ°ì·¨£¬²»Òª£¬don't do so :$DBCLIENT_ENCODING = "GBK";

1.modify apache->httpd.conf
#AddDefaultCharset ISO-8859-1
AddDefaultCharset utf-8
#AddDefaultCharset gb2312

2.modify postgresql->postgrsql.conf
client_encoding = sql_ascii # actually, defaults to database encoding
#client_encoding = GBK

3.backup your theme->chinese ,copy to another directory

4.Theme Management -> add a theme
Name = chinatest
Theme = default
Language = chinese
Locale = C


5.change encoding
open the file "msg" ,save as "msg",bug change the encoding to utf-8
open the file charset,change zh_CN to C


6.registe a new user with theme chinatest

7.login us the new registed user, now you can see chinese char with the utf-8 encoding.

8.but I still don't understand the charset "C"


£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿
ÎÒ»¹ÊDz»ÖªµÀÕâ¸öCÊÇÔõô»ØÊ£¡
ÔÚµÚ4²½ÖУ¬°ÑC¸Ä³Éutf-8Ò²Äܹ¤×÷£¡
¶øÇÒÏÖÔÚÎÒÕýÔÚÊäÈëµÄÕâ¸öÒ³ÃæµÄ×Ö·û¼¯ÏÔʾÊÇgb2312£¬ÊÇÔõô»ØÊ°¡£¡
ÓôÃÆ°¢£¡
£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: russian translation fixes
Next Topic: pubcookie authentication
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 16:08:23 GMT 2024

Total time taken to generate the page: 0.05841 seconds