Hi,
is there any chance you could show files name inside folder? Also will it support korean, chinese and other language names?
Thanks
Hi,
is there any chance you could show files name inside folder? Also will it support korean, chinese and other language names?
Thanks
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>';
}