pathinfo读取不到中文的有关问题

WBOY
Release: 2016-06-13 10:03:51
Original
1468 people have browsed it

pathinfo读取不到中文的问题

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$pathinfo=pathinfo($file_name);$file_basename=$pathinfo["basename"];
Copy after login


如果文件名为中文只能读到.+扩展名,英文正常。

空间在国外。

另外我配置了php.ini
default_charset = "utf-8"

------解决方案--------------------
看一下php文件的编码是不是utf-8,在记事本的另存为对话框的下端有这个选项。
另外,文件名最好用英文:)
Related labels:
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