<![CDATA[ 0.96rc3 最新utf8汉化包(SimpliedChinese utf-8 translation for 0.96rc3) - MODX Community Forums]]> https://forums.modx.com/thread/?thread=51160 <![CDATA[Re: &#20351;&#29992;UTF8,&#21518;&#21488;&#27169;&#29256;&#31649;&#29702;&#20013;&#30340;&#27721;&#23383;&#22788;&#29702;&#22909;&#20687;&#26377;&#38382;&#39064;]]> https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300254 Quote from: kama888 at Nov 17, 2007, 04:28 AM

使用UTF8,后台模版管理中的汉字处理好像有问题

$database_connection_charset=’utf8’
菜单,文章,关键字都可以正常显示.
比如修改modxhost模版,修改模版的描述,用汉字表示.保存后,再拉出来看,就不能正常显示了.
在数据库中直接看.也是乱码.如果直接在数据库中修改好记录,显示是正常的.
有人知道怎么修改这个问题吗?

解决办法之一是:
在manager/index.php
约在140行左右
else {
    mysql_select_db($dbase);
    mysql_query("SET CHARACTER SET {$database_connection_charset}");
}

修改为
else {
    mysql_select_db($dbase);
   mysql_query("SET NAMES '{$database_connection_charset}'");
}
]]>
leepoooo Nov 29, 2007, 11:31 PM https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300254
<![CDATA[&#20351;&#29992;UTF8,&#21518;&#21488;&#27169;&#29256;&#31649;&#29702;&#20013;&#30340;&#27721;&#23383;&#22788;&#29702;&#22909;&#20687;&#26377;&#38382;&#39064;]]> https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300253
$database_connection_charset=’utf8’
菜单,文章,关键字都可以正常显示.
比如修改modxhost模版,修改模版的描述,用汉字表示.保存后,再拉出来看,就不能正常显示了.
在数据库中直接看.也是乱码.如果直接在数据库中修改好记录,显示是正常的.
有人知道怎么修改这个问题吗?]]>
kama888 Nov 16, 2007, 10:28 PM https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300253
<![CDATA[Re: 0.96rc3 &#26368;&#26032;utf8&#27721;&#21270;&#21253;(SimpliedChinese utf-8 translation for 0.96rc3)]]> https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300252 1:如果要装utf8的。数据库建立时采取UTF8-G
2:语言的无关性。也就是你选择说明语言不会影响你的内容和编码
3:为了2的实现,有必要改动config.inc.php的第9行 $database_connection_charset = ’utf8’;//zhang
UTF8为你选择的编码。注意尽量与数据库一致,如果不一致也没关系。因为好像我看到了@mysql_query("SET CHARACTER SET {$database_connection_charset}");在文件中的频繁出现 。 他保证了数据进出的一致性。

楼主的UTF8 不错。 grin]]>
leepoooo Oct 21, 2007, 09:50 PM https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300252
<![CDATA[0.96rc3 &#26368;&#26032;utf8&#27721;&#21270;&#21253;(SimpliedChinese utf-8 translation for 0.96rc3)]]> https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300251 manager语言包(全部完成)
ditto(汉化了一点儿)
ajax search(汉化了一点儿)
eform(汉化了一点儿)
doc manager(汉化了一点儿)
quick edit(汉化了一点儿)
tinymce(汉化了一点儿)

Include these files:
main manager language file (complete)
ditto(only a little)
ajax search(only a little)
eform(only a little)
doc manager module(only a little)
quick edit(only a little)
tinymce(only a little)
]]>
rerbin May 16, 2007, 09:10 PM https://forums.modx.com/thread/51160/0-96rc3-utf8-simpliedchinese-utf-8-translation-for-0-96rc3#dis-post-300251