class Sinatra::Base
def force_encoding(*args) settings.force_encoding(*args) end
The latter might not be necessary if Rack handles it one day.
* casting params to Encoding.default_external
* defaulting to UTF-8
Fixes encoding issues by
def force_encoding(*args) settings.force_encoding(*args) end