is_dir()与非英文字符 [英] is_dir() with non-english characters

查看:154
本文介绍了is_dir()与非英文字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在php中,is_dir()函数忽略包含非英文字符的目录。即。 is_dir(C:\ekşi)根据功能不是目录,但它是。这种情况有什么解决办法吗?谢谢

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

推荐答案

不幸的是,这不是bug。直到PHP 6,没有unicode caharcter支持这种操作。

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

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

这篇关于is_dir()与非英文字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆