【问题标题】:Japenese character in a filename changes to garbage if I download file from IE 11如果我从 IE 11 下载文件,文件名中的日文字符会变为垃圾
【发布时间】:2016-10-26 17:05:05
【问题描述】:

如果我下载了一个以日文字符作为文件名的文件,那么它会在 IE 11 中使用一些垃圾语言。

【问题讨论】:

    标签: asp.net .net internet-explorer-11


    【解决方案1】:

    我找到了解决方案,在这里,我在文件名上使用了UrlEncode,这帮助我解决了我的问题。

    Response.AddHeader("Content-Disposition", String.Format("attachment; filename={0}", HttpUtility.UrlEncode(docFileDTO.FileName)));
    

    【讨论】:

      猜你喜欢
      • 2013-05-29
      • 2010-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-11
      • 2013-09-09
      • 2019-01-04
      • 2021-04-12
      相关资源
      最近更新 更多