Please sign in to comment.
Set encoding for inline templates correctly.
* If Ruby version is not encoding aware, do nothing * If file contains a magic comment in the first line, use that encoding * Otherwise use settings.default_encoding Allows one to use unicode characters without having to escape them and deploy on Linux systems, like Heroku, on 1.9.2 (on OSX encodings always default to UTF-8, which makes it hard to spot this issue before deployment). Fixes #136.
- Loading branch information...
Showing with 26 additions and 9 deletions.