【发布时间】:2011-02-02 14:03:28
【问题描述】:
ajax(搜索建议),如果输入有趣的字符(如Ô)并提交,“?”显示在 *****.asp 中。 (response.write(request.form("str")))
我正在使用
xmlhttp.open("post", "*****.asp", true);
xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send("str="+escape($("str").value));
在*****.asp 文件中有<%@CODEPAGE=65001%>
我怎样才能得到正确的单词——*****.asp中的“Ô”
【问题讨论】:
-
这个问题出在函数 escape() 上。有趣的字符(Ô)被编码
标签: ajax unicode character-encoding asp-classic