答案 0 :(得分:0)
我设法解决它!
我的响应标题中发现了错误,因为我的文件名需要编码
我改变了
context.Response.AddHeader("Content-Disposition", "inline;attachment; filename=\"" + fileName + "\"");
到
context.Response.AddHeader("Content-Disposition", string.Format("attachment; filename*=UTF-8''{0}", HttpUtility.UrlPathEncode(fileName)));