is_dir() with non-english characters

 ̄綄美尐妖づ 提交于 2019-12-24 07:47:04

问题


In php, is_dir() function omits directories which contains non-english characters. ie. is_dir("C:\ekşi") is not directory according to the function but it is. Is there any solutions to this case? Thanks


回答1:


Sadly, this is no bug. Until PHP 6, no unicode caharcter support for this kind of operations.

Reference: http://www.php.net/manual/en/function.scandir.php#96140



来源:https://stackoverflow.com/questions/4904004/is-dir-with-non-english-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!