moodle的中文日历乱码问题

来源:互联网 发布:超级英雄淘宝购买礼包 编辑:程序博客网 时间:2024/06/06 11:45

网上看了一大堆解决方案,都有问题,这个问题的正确解决方案是:

1。moodledata/lang/langconfig.php应该是utf-8;
2.langconfig.php中不应该用%%,而应该用%
3.moodledata中的cache文件夹删掉,下次进到任何moodle页面,cache就会重新生成。
 

-----完整代码:

$string['alphabet'] = 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z';
$string['backupnameformat'] = '%Y%m%d-%H%M';
$string['firstdayofweek'] = '1';
$string['locale'] = 'zh_CN.UTF-8';
//$string['localewin'] = 'Chinese_China.936';
//$string['localewincharset'] = 'CP936';
//$string['oldcharset'] = 'UTF-8';
//采用24小時制
$string['strftimedate'] = '%Y年 %m月 %d日 ';
$string['strftimedateshort'] = '%m月 %d日 ';
$string['strftimedatetime'] = '%Y年 %m月 %d日,%H:%M';//
$string['strftimedaydate'] = '%Y年 %m月 %d日 %l';
$string['strftimedaydatetime'] = '%Y年%m月 %d日(星期%w) %H:%M';//%n在php中有bug
$string['strftimedayshort'] = '%m月 %d日 星期%w';
$string['strftimedaytime'] = '%a %H:%M';
$string['strftimemonthyear'] = '%Y 年 %m 月 '; //首页日历
$string['strftimerecent'] = '%m月 %d日,%H:%M';
$string['strftimerecentfull'] = '%Y年%m月%d日(星期%w) %H:%M';//讨论区完整日期
$string['strftimetime'] = '%H:%M';
$string['thischarset'] = 'UTF-8';
$string['thisdirection'] = 'ltr';
$string['thislanguage'] = 'Chinese';

0 0