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

Closed
anddon opened this Issue Jul 20, 2011 · 1 comment

Comments

Projects
None yet
2 participants

anddon commented Jul 20, 2011

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 added a commit to tommetge/sinatra-cache that referenced this issue Dec 21, 2011

Fix issue #7
thanks to andiug for the issue and the fix:

kematzy#7

kematzy added a commit that referenced this issue May 11, 2012

Merge pull request #10 from tommetge/master
fix issue #7 (default encoding bug)
Owner

kematzy commented May 11, 2012

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

@kematzy kematzy closed this May 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment