js发送的中文值到php变成了乱码
我用ecshop做的js端:varurl="storeroom_send_apply.php?act=search_dealer";vardata="dealer_nam...
我用ecshop做的
js端:
var url = "storeroom_send_apply.php?act=search_dealer";
var data = "dealer_name=经销商";
Ajax.call(url, data+""+this.compileFilter(), this.searchDealer_Callback, "POST", "JSON");
php端:
elseif ($_REQUEST['act'] == 'search_dealer')
{
var_dump($_REQUEST['dealer_name']);
exit;
}
结果:string(9) "Ï 展开
js端:
var url = "storeroom_send_apply.php?act=search_dealer";
var data = "dealer_name=经销商";
Ajax.call(url, data+""+this.compileFilter(), this.searchDealer_Callback, "POST", "JSON");
php端:
elseif ($_REQUEST['act'] == 'search_dealer')
{
var_dump($_REQUEST['dealer_name']);
exit;
}
结果:string(9) "Ï 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |