yiyamzen
(yiyamzen)
中级会员
 
中级会员
UID 63892
精华
0
积分 490
帖子 358
金钱 490 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2005-4-1
状态 离线
|
[广告]: q
m
ajax php 中文问题
我想用ajax传中文,然后用php接收并用接收的到mysql查询,也面都是gbk的
如下
a.php
var str="a=1&b="+encodeURIComponent(tmp);//tmp的值是中文
b.php
header('Content-Type:text/html;charset=gb2312');
$b=iconv('UTF-8','gb2312',$b);
可输出$b得到的还是 %u4E0A 这种
php高手们指点一下啦 ,先谢啦~
|
|