ie下载提示框中出现乱码。。。。。。
Response.Clear()
Response.Buffer = True
Response.Charset = "GB2312 "
Dim downLoadFileName As String = "attachment;filename= " +fileName
Response.AppendHeader( "Content-Disposition ", downLoadFileName)
Response.ContentEncoding = System.Text.Encoding.GetEncoding( "utf-8 ")
Response.ContentType = "application/ms-word "
Dim path As String = netWorkPath '服务器上的文件path
Response.WriteFile(path)
如果文件名称为中文,则提示框中的文件名称为乱码
打开和保存文件名称也是乱码
[解决办法]
webcofig 的设置不对!!
[解决办法]
你看你webcofig的编码也是GB2321么?如果不是就改下
’
[解决办法]
贴出来我看下