这发生在最新的 play2(RC3) 中:
两个动作:
object Application extends Controller {
def test = Action { Redirect(routes.Application.test1("中文") }
def test1(message: String) = Action { Ok(message) }
}
路线:
GET /test controllers.Application.test
GET /test1/:title controllers.Application.test1(title)
当我访问/test
时,响应头是:
303
Content-Length 0
Location /test1/??
可以看到 unicode中文
变成??
.
这是一个错误,还是我错过了什么?