开发者

How to use german umlaute in rails3 routes

really big problem example request

http://localhost:3000/freund/in/münchen

my first route in routes.rb

match ':category/in/:city' => 'home#index', :constraints => {:city => /(berlin|hamburg|münche开发者_StackOverflown)/ }

and I get the error Routing Error

No route matches "/freund/in/m%C3%BCnchen"

what can I do? I postet everywhere :(


"Real" Unicode characters in URLs are invalid. They usually get percent encoded by the browser, which results in m%C3%BCnchen. You will need to check for that inside Ruby.

This question provides more background: Unicode characters in URLs

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜