I have found an issue with sinatra-cache not passing the :default_encoding to tilt, resulting in this error for utf-8 templates.
The solution I found is to add options[:default_encoding] ||= settings.default_encoding to the render method in templates.rb
I have found an issue with sinatra-cache not passing the :default_encoding to tilt, resulting in this error for utf-8 templates. The solution I found is to add
options[:default_encoding] ||= settings.default_encoding
to therender
method intemplates.rb