使用thinkphp分页参数中有中文时,在点击下一页时出现乱码:
解决方法为修改thinkphp page类 show方法:
thinkphp3.2.3对应位置为:ThinkPHP/Libary/Think/Page.class.php的82行;
将:$this->url = U(ACTION_NAME, $this->parameter);
改为:$this->url=U(ACTION_NAME).'?'.http_build_query($this->parameter);
使用thinkphp分页参数中有中文时,在点击下一页时出现乱码:
解决方法为修改thinkphp page类 show方法:
thinkphp3.2.3对应位置为:ThinkPHP/Libary/Think/Page.class.php的82行;
将:$this->url = U(ACTION_NAME, $this->parameter);
改为:$this->url=U(ACTION_NAME).'?'.http_build_query($this->parameter);
转载于:https://www.cnblogs.com/fortitude526/p/8872398.html