这是PHP手册上面的例子:<?php// fill an array with all items from a directory
$handle = opendir('.');
while (false !== ($file = readdir($handle))) {
    $files[] = $file;
}
closedir($handle); ?> 我用这段代码读取目录,在循环里输出文件名的时候发现中文出现乱码,英文正常显示。请问如何解决目录中文乱码的问题呢?
<?php// fill an array with all items from a directory
$handle = opendir('.');
while (false !== ($file = readdir($handle))) {
    $files[] = $file;
    echo $file."<br>";
}
closedir($handle); ?>