amk 发表于 2013-11-26 14:43:18

asp Server.URLEncode 解决生成utf-8文件时,文件名为乱码的问题

当asp所有的文件编码为uft-8时,通过动态生成的例子.doc 文件,名称不能正常显示。通过

dim pageObj:pageObj=Array("地区-"&kzjmcName&"档案资料")

'Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Type", "application/vnd.ms-excel;charset=utf-8;"
Response.AddHeader "Content-Disposition", "attachment; filename="&Server.URLEncode(pageObj(0))&".xls"
页: [1]
查看完整版本: asp Server.URLEncode 解决生成utf-8文件时,文件名为乱码的问题