标签:
var encoding = System.Text.Encoding.UTF8; Response.Charset = encoding.WebName; Response.HeaderEncoding = encoding; return File(path, "application/octet-stream", ((Request.Browser.Browser == "IE") ? HttpUtility.UrlEncode(filename, encoding) : filename));
只要这样就行了
asp.net MVC FileResult在IE下异常的解决办法
标签:
原文地址:http://www.cnblogs.com/lxiang/p/4305034.html