Thinkphp3.2 分页中文参数乱码解决

thinkphp3.2 分页 条件搜索 参数为中文时在IIS服务器上会发生参数乱码情况,解决方法如下:
只用改 ThinkPHP\Library\Think\Page.class 文件:

把:
[php]
return str_replace(urlencode('[PAGE]'), $page, $this->url);
[/php]
改成:
[php]
return str_replace('[PAGE]', $page, $this->url);
[/php]

把:
[php]
$this->url = U(ACTION_NAME, $this->parameter);
[/php]
改成:
[php]
$paramStr="";
foreach($this->parameter as $key => $value){
$paramStr = $paramStr.'&'.$key.'='.$value;
}
$paramStr = substr($paramStr,1,strlen($paramStr));
$this->url = U(ACTION_NAME).(strpos(U(),"?")?'&':'?').$paramStr;
[/php]

阅读剩余
THE END