首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

ie下载提示框中出现乱码。解决思路

2012-03-29 
ie下载提示框中出现乱码。。。。。。Response.Clear()Response.BufferTrueResponse.CharsetGB2312  DimdownL

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么?如果不是就改下

[解决办法]
贴出来我看下

热点排行