resolve/refinerycms — pull request #1773 by drifteaur (2012-06-27 13:25:59+00:00)
Title: avoid charset errors when precompiling assets with translated strings

If translation .yml files have UTF-8 characters, asset precompilation will fail because some javascript files contain ::I18n.t. Adding <%# encoding: utf-8 %> to the top of those files solves the problem.

For example:

```
RAILS_ENV=production bundle exec rake assets:precompile/Users/drifter/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /Users/drifter/.rvm/gems/ruby-1.9.3-p194@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
"\xC3" on US-ASCII
(in /Users/drifter/.rvm/gems/ruby-1.9.3-p194/gems/refinerycms-core-2.0.5/app/assets/javascripts/refinery/submit_continue.js.coffee.erb)
```