php文件上传后台存储中文乱码问题解决方案
用户上传文件后,我们以它原有的文件名保存(有时是中文),可以用php的move_uploaded_file命令:move_uploaded_file($tempFile, $targetFile); // $tempFile是服务器暂存文件的位置,$targetFile是带有中文文件名的新位置但在我的ubuntu服务器上,文件会乱码,需要先用icotargetFile=iconv(′UTF−8′,
原创
2016-01-12 14:12:26 ·
1342 阅读 ·
0 评论