摘要: 原因是不同浏览器对于下载文件文件名的编码解析格式不一样,常用浏览器解析格式如下: IE浏览器,采用URLEncoder编码Opera浏览器,采用filename*方式Safari浏览器,采用ISO编码的中文输出Chrome浏览器,采用Base64编码或ISO编码的中文输出FireFox浏览器,采用B 阅读全文
posted @ 2020-06-17 17:20 zju_cxl 阅读(169) 评论(0) 推荐(0)
摘要: 模板: <a href="{% url 'Analyse:downFile' %}">国内.xlsx</a> urls: path('downFile/', views.download_file, name='downFile'), 视图: def download_file(request): 阅读全文
posted @ 2020-06-17 16:29 zju_cxl 阅读(271) 评论(0) 推荐(1)