- Use the System.Web.HttpUtility.UrlEncode or Server.UrlEncode method, but write both parameters:
System.Web.HttpUtility.UrlEncode("报表",System.Text.Encoding.UTF8)
- With the HttpUtility.UrlPathEncode method, just write one parameter:
HttpUtility.UrlPathEncode("报表.xls")
Method 2 was used in " asp.net download large file code "
Reprinted in: https://www.cnblogs.com/ruanzb/archive/2010/06/30/1768281.html