parent
0d01379603
commit
9a56f40ec2
|
@ -46,7 +46,7 @@ def export_teachers_excel(request):
|
|||
# 中文文件名需要处理成百分号编码
|
||||
filename = quote('老师.xls')
|
||||
# 通过响应头告知浏览器下载该文件以及对应的文件名
|
||||
resp['content-disposition'] = f'attachment; filename*=utf-8''{filename}'
|
||||
resp['content-disposition'] = f'attachment; filename*=utf-8\'\'{filename}'
|
||||
return resp
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue