Django 后端处理文件下载返回乱码数据,可以下载但无法打开?-灵析社区

我只爱钱

# 换成这两个响应头试试 response['Content-Type'] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" response['Content-Disposition'] = "Content-Disposition", "attachment; filename*=utf-8''模板.xlsx"

阅读量:1

点赞量:0

问AI