<%@ codepage=936%>简体中文
<%@ codepage=950%>繁体中文
<%@ codepage=65001%>UTF-8
如果网页采用UTF-8编码,在使用SqlServer数据库的时候,需要在数据库链接页面指定CodePage类型<%@ codepage=65001%>。
有文章指出需要在SqlServer中选择nchar或者nvarchar等带n开头的类型,实际尝试的时候发现并不需要。
一篇很好的CodePage说明文章
让你知道codepage的重要
http://www.blueidea.com/tech/program/2004/2351.asp
asp中的Cookie
获取用request.Cookie("名字")
设置用response.Cookie("名字")