halgatewood / file-directory-list

Free Super Clean PHP File Directory Listing Script
https://halgatewood.com/free/file-directory-list/
360 stars 151 forks source link

Cant see files or folders with utf8 characters #17

Open kavehramin opened 6 years ago

kavehramin commented 6 years ago

Hi Thanks a lot for this perfect directory php <3 I have problem with utf8 character text like arabic or persian language in file names! example : فایل.docx plz help :-)

halgatewood commented 6 years ago

screen shot 2018-02-23 at 11 48 47 am Hmmm. I'm able to see them on my end. I just added UTF-8 meta tag in version 1.10 to help this further.

I use the PHP function scandir to get the files perhaps you can do some research on that function to see if there needs to be something else added.

Thanks, Hal

kavehramin commented 6 years ago

Tanx i get new but i have problem in v1.10 too!! plz check it... folder

sneetsher commented 6 years ago

This is PHP upstream bug with Unicode file names. Here is the upstream bug report:

https://bugs.php.net/bug.php?id=70551

From the comments there, it should be fix with PHP 7.1 release.

@kavehramin, If you are able to test, let me know your results. I'm passing-by looking just for beginner-bugs to learn & contribute.