I have some issues with file name encoding when extended latin characters are used. I have the following files:
Letter Ā.mp4
Letter A.mp4
In any way with different methods in PHP gives me the filenames as the same:
Letter A.mp4
Letter A.mp4
Even iterating over them this name is shown twice, it means that it sees 2 different files.
I tried to change script encoding with mb_internal_encoding("UTF-8")
, tried recursive directory iterator, tried glob etc. In no way I cant get PHP to output the full filename with Ā
What file listing method should I use to see those files with illegal names? I want to rename those files without bad characters.