Hebrew Directory Names
| From: | Nitsan Bin-Nun | Date: | Thu, 28 May 2009 14:15:13 +0000 |
| Subject: | Hebrew Directory Names | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-293296@lists.php.net to get a copy of this message | ||
Hi
I have wrote a files-based php system which not requires any kind of
database to work, it is based upon files and directories.
I'm using scandir() to fetch the file names of a directory, when the files
and the directories are in English everything works like a charm, the
problems starting when the files or the directories are in Hebrew.
I tried several encodings for the directory names (including UTF8) but no
luck so far. I always get is_file() === FALSE when the directory name is in
Hebrew and the filename is in English.
Any ideas??
The path which I'm checking with is_file() is:
string(63) "/home/nitsanbn/public_html/iphoneia/walls/מחשבים/1346.jpg"
(Due to the LTR encoding of this messege the filename is looking like it's
in Hebrew, the directory is מחשבים and the filename is 1346.jpg)
Thanks in Advance,
Nitsan