Fix error "invalid byte sequence in US-ASCII" in .js.erb files

Posted . Visible to the public.

This error can happen in Ruby 1.9.

To fix it, add the following line to the top of your .js.erb file:

<%# @encoding: UTF-8 %>
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2013-02-22 13:55)