get list of arabic,persian files in a directory problem

i have a simple file search engine by CI,

i need to get name of all pdf fiels in a directory.

but the name of all files is arabic or persian,

i have problem with scandir for get right names,it dont work and return bad cahracters.

have you an idea?

thanks All.

It seems that it is a known (non-)bug.

[Someone please move this to an appropriate forum]