注册 登录
编程论坛 ASP技术论坛

为什么我提交时转跳页面会出现乱码

fzying 发布于 2008-12-11 21:04, 1197 次点击
If Trim(Request.Form("validatecode"))=Empty Or Trim(Session("))<>Trim(Request.Form("validatecode")) Then
response.write("请注意正确输入验证码")
response.end
end if

response.write("请注意正确输入验证码")
我提交后不是出现上面的字.面是乱码一名.这怎么回事.我不懂请教大侠了.
3 回复
#2
lili06102008-12-12 09:45
你用什么语言编译的
是UTF-8
还是GB2132
还是HZ
#3
lackyking2008-12-12 09:59
网页编码问题,注意三个地方
ut-8:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
Response.Charset="utf-8"
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

gb2312:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
Response.Charset="gb2312"
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
#4
fzying2008-12-12 12:22
我用的是UT-8编码.
那你上面的编码怎么写.
1