Home  >  Article  >  Backend Development  >  关于thinkphp 下传文件 使用IE浏览器乱码的有关问题

关于thinkphp 下传文件 使用IE浏览器乱码的有关问题

WBOY
WBOYOriginal
2016-06-13 10:37:34896browse

关于thinkphp 上传文件 使用IE浏览器乱码的问题
请教一个问题,使用THINK PHP 上传文件的时候(有中文名称),如果使用火狐浏览器 则编码很正常,但是如果使用IE 浏览器 上传文件 文件名称就会是乱码 请问是怎么回事?


------解决方案--------------------
上传后将文件名改成字母+数字的比较好吧
------解决方案--------------------
存入数据库
------解决方案--------------------
可能是WEB服务器的编码与传递的中文编码不一至,而导至的乱码吧,你可以用mb_convert_encoding转码,这样应该可以解决你的问题。

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