I方法获取不到中文参数

浏览:1847 发布日期:2016/03/26 分类:求助交流
http://localhost/Admin/Person/index/seachkey/zhongguo

http://localhost/Admin/Person/index?seachkey=zhongguo
$seachkey = I('seachkey');
echo $seachkey; //结果为:zhongguo

http://localhost/Admin/Person/index?seachkey=中国
$seachkey = I('seachkey');
echo $seachkey; //结果为:中国

http://localhost/Admin/Person/index/seachkey/中国
$seachkey = I('seachkey');
echo $seachkey; //结果为空

请问谁知道这是为什么?
最佳答案
评论( 相关
后面还有条评论,点击查看>>