Home  >  Article  >  Backend Development  >  scandir函数传入中文路径问题

scandir函数传入中文路径问题

WBOY
WBOYOriginal
2016-06-23 13:45:431056browse

传入中文路径的话,程序就说找不到该路径,请问这个怎么解决啊?是传入中文路径,不是读取中文路径


回复讨论(解决方案)

你传入的中文路径的编码与操作系统的不符

最好更改成英文形式的,不然读取不了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn