ASP MVC3 FileResult with accents + IE8 - bugged?

萝らか妹 提交于 2019-11-30 20:57:31

Try adding the following line inside your controller action:

Response.HeaderEncoding = Encoding.GetEncoding("iso-8859-1");

You may take a look at the following blog post which discusses those issues. Unfortunately there isn't a general solution which will work among all browsers.

Is this a file the user is uploading to your system at some point? If so, restrict the use of accents in a file name. If not - don't use accents in your file names :).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!