2008/11/28 9:05:07
即使安装在windows上也无法直接正确上传和显示中文名字文件,所以问题肯定出在网页文件php的配置中,
moodle/config.php
$CFG->unicodecleanfilename = true; //任意位置 最前面是美元符号
当然如果你使用firefox浏览器应该不需要如此修改,其它浏览器自己试验吧。
//Unicode characters can be enabled by setting $CFG->unicodecleanfilename = true; in config.php
// lib/moodlelib.php 有说明
另外,在ie浏览器中选择上传文件时还可能显示乱码等,可以在
lib/editor/htmlarea/coursefiles.php
第二行加上这样一句:// 可以用:set nu显示行号
@header("Content-Type: text/html; charset=utf-8"); //这个是默认选择utf-8编码
问题可以顺利解决