下载文件名乱码

        Response.Clear()
        Response.ContentType = "application/octet-stream"
        Response.AddHeader("Content-Disposition", "attachment;FileName=" + HttpUtility.UrlEncode(filename, System.Text.Encoding.UTF8))
        Response.WriteFile(filepath+filname)
        Response.End()

你可能感兴趣的:(下载文件)