1

这发生在最新的 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中文变成??.

这是一个错误,还是我错过了什么?

4

0 回答 0