利用sendRequest传递url时关键字(中文)出现乱码
笨妞妞 2010-11-08 06:19:26 在jscript中,
function onChangeCountry(ControlValue)
{
var url = "DropDownListData.aspx?country='" + ControlValue.value + "'";
SendRequest(url,'City');
}
function SendRequest(url,flag)
{
if (xmlHttp)
{
xmlHttp.open("GET", url, true);
if (flag == 'City')
{
xmlHttp.onreadystatechange = BindDdlCity;
}
else if (flag == 'Region')
{
xmlHttp.onreadystatechange = BindDdlCity;
}
xmlHttp.send(null);
}
}
在DropDownListData页面里,为何strValue = Request.QueryString["country"].ToString();获取的值是乱码?
在aspx文件里添加了<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />依旧不能解决问题。
请问这是什么问题?我该如何解决?谢谢各位了!