Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

"ArgumentError: invalid byte sequence in US-ASCII" for utf-8 encoded templates #7

Closed
andiug opened this Issue · 1 comment

2 participants

@andiug

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

@tommetge tommetge referenced this issue from a commit in tommetge/sinatra-cache
@tommetge tommetge Fix issue #7
thanks to andiug for the issue and the fix:

kematzy#7
b4dc8ff
@kematzy
Owner

Should be sorted now. Apologies for delay in fixing or addressing your issue.

@kematzy kematzy closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.