Home >Backend Development >PHP Tutorial > php下传文件名乱码

php下传文件名乱码

WBOY
WBOYOriginal
2016-06-13 13:05:26901browse

php上传文件名乱码

只须将上传的文件名转码

?

$fileName = iconv('utf-8','gb2312',$file['name']);

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