readdir filenames with accents issue
| From: | All U Want | Date: | Fri, 08 Sep 2006 09:16:56 +0000 |
| Subject: | readdir filenames with accents issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-241480@lists.php.net to get a copy of this message | ||
Hi,
I'm creating a file browsing site but don't know how to list properly filenames containing accents (french, spanish, etc). I've been browsing the archives but couldn't find a fix.
foreach ($files as $file) {
echo $file;
}
For example:
Filename: sábado-1.mov
Link: saÌbado-1.mov
I would appreciate any help.
Regards,
Luis.
PS - If it helps I'm working on OS X and PHP 4.4.1