tags:

views:

46

answers:

2

Hi,

is there any chance you could show files name inside folder? Also will it support korean, chinese and other language names?

Thanks

+1  A: 

You have to use the a character encoding for output that supports the characters your file names have. I’d recommend you to use UTF-8 as it can encode any Unicode character.

So try this:

// set the MIME type and character encoding
header('Content-Type: text/html;charset=utf-8');

$files = glob('*');
foreach ($files as $file) {
    echo $file, '<br>';
}
Gumbo
+1  A: 

There is currently an open bug with this issue as well.

Ólafur Waage