用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2568|回复: 4
收起左侧

[版本 2.x] uri获取中文参数是乱码

[复制链接]
发表于 2012-11-20 11:37:05 | 显示全部楼层 |阅读模式
http://localhost/property/listing/青岛/2012-11-20/2012-11-21/

$address = $this->uri->segment(3) ;

值是%E5%8C%97%E4%BA%AC

怎么获取“青岛”??

发表于 2012-11-20 11:58:48 | 显示全部楼层
 楼主| 发表于 2012-11-20 11:59:30 | 显示全部楼层
xyst0524 发表于 2012-11-20 11:58
http://codeigniter.org.cn/user_guide/libraries/encryption.html
看看这个试试

这个是加密类。。。我是要转码
发表于 2012-11-20 13:08:03 | 显示全部楼层
试一下urldecode
 楼主| 发表于 2012-11-20 13:19:45 | 显示全部楼层
yunnysunny 发表于 2012-11-20 13:08
试一下urldecode

搞定

本版积分规则