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

scandir函数传入中文路径问题

WBOY
Release: 2016-06-23 13:45:43
Original
1125 people have browsed it

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


回复讨论(解决方案)

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template