会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
韩非丶
Automation makes life simple!
博客园
首页
新随笔
联系
订阅
管理
2020年1月7日
Python3.x在django中如何设置Content-Disposition,才能让浏览器正确保存中文命名的文件?
摘要: 在网上找到了解决方案,使用下面的代码,文件名成功显示了中文。 from django.utils.encoding import escape_uri_path from django.http import HttpResponse def test(request): file_name = '
阅读全文
posted @ 2020-01-07 14:15 hanfe1
阅读(1357)
评论(0)
推荐(0)
编辑
公告