Unicode in Content-Disposition header

后端 未结 7 1397
情歌与酒
情歌与酒 2020-12-03 17:46

I am using HttpContext object implemented in HttpHandler child to download a file, when I have non-ascii characters in file name it looks weird in IE whereas it looks fine i

7条回答
  •  伪装坚强ぢ
    2020-12-03 18:18

    HttpUtility.UrlPathEncode might be a better option. As URLEncode will replace spaces with '+' signs.

提交回复
热议问题