When fetching the output of scandir()
function of php, I have some folders where there names are in arabic language. The problem is that the output was "???????
" in order to display Arabic letters.
Here is a piece of my code:
<?php
$dir = '../dirs';
$files1 = scandir($dir);
foreach($files1 as $key => $value)
{
if($value != '.' && $value != '..' && $value != '')
echo "<option>".$value."</option>";
}
?>
Any ideas?