You can clone with
Now that the params are forced to be utf8http://github.com/sinatra/sinatra/commit/7289cd905c6b36b5c669fbbce1cc2bb00ddb0a39
Could it also be made possible for the url to be utf8.
Example when running ruby 1.9.2
# encoding: UTF-8
get '/hellö' do
When loaded in browser results to
Encoding::CompatibilityError at /hell%C3%B6
incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
But when I add force_encoding(@path) just before that line 554 it works.
Yeah, there has been some discussion about how to handle this on the Rack mailinglist. Essentially it boils up to a GET /hellö not being the same as GET /hell%C3%B6. Let me do some more thinking about this. James Tucker (raggi) also said he'd do a write up about handling this topic and/or write a middleware for that. Will talk to him.
Routes can use unicode characters without causing an encoding exception on
Closed by 2943e93.