The files inside a folder will be with the utf-8 names like:
- 日本.txt
While i use this code to list the files inside the dir:
$dir = new DirectoryIterator($path);
foreach ($dir as $filename) {
echo $filename . "<br>";
}
And i also have correct html header like:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
But anyway, the final output is being like following:
- ??.txt
How can i make it work?