ajax中文乱码问题,要求用GB2312!
帮我看看乱码怎么回事
http://www.avbuyer.com.cn/test/10.html
http://www.avbuyer.com.cn/test/10_OK.ASP
<%@LANGUAGE= "VBSCRIPT " CODEPAGE= "936 "%>
<%
Response.ContentType = "text/html "
Response.Charset = "GB2312 " '解决乱码问题
username=request( "username ")
password=request( "password ")
if(username= " " and password= " ") then
response.Write( "用户名与密码不能为空! ")
else
if(username= "admin " and password= "admin ") then
response.Write( "登录成功! ")
else
response.Write( "登录失败! ")
end if
end if
response.Write(username&password)
%>
------解决方案--------------------你的HTML也一样要使用GB2312编码...
------解决方案--------------------你的HTML也一样要使用GB2312编码...
------解决方案--------------------unescape()这个函数在服务端好象也可以用,你试试看.
------解决方案--------------------设置web.config里的字符集为gb2313就可以了