asp 中 XMLHttpRequest提交时中文乱码
2009-03-13 10:26
393 查看
<!--#include file="conn.asp"-->
<%
Response.CharSet = "gb2312" //加这句话了没有服务器端 ,加上这个就行
area=""
'--------------得到地区参数
objstr=request("objstr")
'--------------根据参数读取相应的下级地区
set rs=server.createobject("adodb.recordset")
rs.open"select * from area where fmc='"&objstr&"' order by id",conn,3,3
'--------------循环得到数组并返回客户端
for i=1 to rs.recordcount
if i=1 then
area=rs("mc")
else
area=area&"|"&rs("mc")
end if
rs.movenext
next
'--------------返回数据
response.write area
%>
<%
Response.CharSet = "gb2312" //加这句话了没有服务器端 ,加上这个就行
area=""
'--------------得到地区参数
objstr=request("objstr")
'--------------根据参数读取相应的下级地区
set rs=server.createobject("adodb.recordset")
rs.open"select * from area where fmc='"&objstr&"' order by id",conn,3,3
'--------------循环得到数组并返回客户端
for i=1 to rs.recordcount
if i=1 then
area=rs("mc")
else
area=area&"|"&rs("mc")
end if
rs.movenext
next
'--------------返回数据
response.write area
%>
相关文章推荐
- 解决XMLHttpRequest中文乱码问题
- 用xmlhttpRequest获取同域网页中文出现乱码解决方案
- 如何防止XMLHttpRequest对象传回的中文数据中出现乱码?
- JSP中使用XMLHttpRequest动态无刷新及其中文乱码处理
- AJAX技术使用XMLHttpRequest对象传递参数的中文乱码问题
- XMLHttpRequest进行ajax通讯时中文乱码问题解决
- JSP XMLHttpRequest动态无刷新及其中文乱码处理
- XMLHttpRequest对象解决中文乱码问题
- 如何防止XMLHttpRequest对象传回的中文数据中出现乱码
- HttpWebRequest模拟POST提交防止中文乱码
- Ajax(xmlhttp request)中文乱码的解决方案
- XMLHttpRequest读取中文网页时返回乱码的解决办法
- asp整合到asp.net当中,当asp中form提交后,request中文名为乱码的解决方法
- XMLHttpRequest读取中文网页时返回乱码的解决办法
- JSP XMLHttpRequest动态无刷新及其中文乱码处理
- cocos2d js jsb XMLHttpRequest 中文乱码
- XMLHttpRequest 传递中文 乱码
- HttpWebRequest模拟POST提交防止中文乱码
- JQuery中Ajax的Post提交中文乱码、windows.location.href 中文汉字乱码和springmvc使用原生态HttpServletRequest接收参数中文乱码解决办法
- HttpWebRequest模拟POST提交防止中文乱码