I have either a folder by the name of "同" (doesn't matter which character I use or how many) after pulling it up with php shows the incorrect character or garbled text.
<?php
mb_internal_encoding('utf-8');
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo $file;
}
}
closedir($handle);
}
echo "同";
?>
Returns:
Folder1index.php��同
It displays 2 'characters' as if it isn't encoded to UTF-8 properly. The browser is processing the page fine as UTF-8 due to the echo of the character in question.
Is this a php/code issue or is something else preventing it displaying properly?(IIS etc.)