后端开发
网络新概念,云计算、大数据、O2O、电商。。。。
网络新概念,云计算、大数据、O2O、电商。。。。
2017-11-14 15:41:25
Response.Buffer = true Response.AddHeader "Content-Disposition", "attachment;filename=""zhongxin"&tyear&tmonth&company&".xls""" 'Response.AddHeader "Content-Disposition","attachment; filename=member.csv" Response.CharSet = "UTF-8" 'Response.ContentType = "application/octet-stream" Response.ContentType = "application/excel" Session.CodePage = 65001 '936 Response.BinaryWrite ChrB(&HEF) & ChrB(&HBB) & ChrB(&HBF) Response.Write("<table><tr><td colspan=5>应收款明细表</td></tr><tr><td>日期</td><td>摘要</td><td>本期应收</td><td>本期实收</td><td>月末余额</td></tr></table>") Response.Flush() Response.End()
一、CODEPAGE中的编码:
utf8编码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
gb2312编码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
二、meta标签中的编码:
utf8编码
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
gb2312编码
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
三、文本文件编码对于
utf-8
ansi
注意::::: 一、二、三需要统一口径!!!