ID: 15706
Updated by: [EMAIL PROTECTED]
-Summary: readdir doesn't return correct FRENCH filenames
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Directory function related
Operating System: WIN XP
PHP Version: 4.1.1
New Comment:
I don't think this is a PHP problem...
Previous Comments:
------------------------------------------------------------------------
[2002-02-24 23:39:08] [EMAIL PROTECTED]
hi,
I'm think this is a valid bug :)
I'm trying to list files from a certain directory with readdir() but
any accented capital letter is returned without the accent... I'll
explain:
----------------------------------
my directory listing is:
.
..
Bloqueurs des canaux calciques voltage.doc
Diur�tiques.doc
REGF et JNK.pdf
�icosanoides.doc <--------
----------------------------------
the file pointed by the arrow is returned "Eicosanoides.doc" no accent
on the capital E.
The problem isn't present with lowercase letters, i.e. the filename
"Diur�tiques.doc" is returned correctly.
here's my code:
$handle=opendir($dir);
echo "Files:<br>\n";
while (false !== ($file = readdir($handle))) {
echo "<br>$file\n";
}
closedir($handle);
I hope this is enough info, dont hesitate to email me for anything. I'm
running Apache1.3.23 with PHP4.1.1 binaries from php.net
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15706&edit=1