导出文件显示的名称和预想不符,一般是文件名的无法被识别,需要通过单独编码才行 response["Content-Disposition"] = "attachment; filename*=UTF-8‘‘{}".format(escape_uri_path(filename))
response["Content-Disposition"] = "attachment; filename*=UTF-8‘‘{}".format(escape_uri_path(filename))
filename为文件名
django导出文件编码问题
原文:https://www.cnblogs.com/kclinux/p/14889403.html