yii伪静态带文章标题时遇到特殊字符bad request error 400

‘sss/<id:\d+>/<title>’ => ‘site/show’,

title为 汽车板块大幅走高 长城汽车涨近7%

访问出现错误,提示:

Bad request!

Your browser (or proxy) sent a request that this server could not understand.

If you think this is a server error, please contact the webmaster.

Error 400

进数据库里把%分号删掉就可以正常访问了,请教原因或解决办法,谢谢

试试 CHtml::encode($title)

先谢谢,应该不是,而是 urlManager 里应该有什么额外的定义方式吗?