问题:下载文件时文件名乱码怎么解决? 在C#写后台代码过程中,经常遇到下载文件出现文件名乱码的问题,在网上找了很多方法,总是存在浏览器不兼容的问题,当IE浏览器不乱码时,火狐浏览器就会乱码,后来经过反复研究,发现一个问题,那就是我们主流的浏览器中火狐浏览器与其他浏览器(IE.Chrom等等)还真是不一样,所以,在下载写入头部分是先做一个判断,判断是否为火狐浏览器,后来发现完全没问题! var filename = year + "xxxx.xls"; //判断是否为火狐浏览器 var
最近打算学习安装配置WordPress,当然同时也在学习PHP+MySQL,希望以后能做一些关于WordPress定制和二次开发,包括主题和插件.在成功安装WordPress3.5中文版之后,就测试了一下.其他的功能之前也熟悉一点,但是今天上传了一个含有中文的docx文档上去,然后点开附件,发现报错.无法下载和查看开始上传的那个文件,因为中文名文件在上传之后出现了乱码. 解决办法如下: 找到/wp-admin/includes/file.php这个文件,并最如下修改: function wp_h