So, I updated my Ruby to 1.9.2, followed this:
- Make sure 'config.encoding = "utf-8"' is there in application.rb file.
- Make sure you are using 'mysql2' gem
- Putting '# encoding: utf-8' on top of rake file.
- Above 'Starter::Application.initialize!' line in environment.rb file, add following two lines:
- Encoding.default_external = Encoding::UTF_8
- Encoding.default_internal = Encoding::UTF_8
and now all my Ruby code is working right, but my assets/javascript/application.js is loaded only with this code:
throw Error("Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8")
how can i define assets encoding?
ps.: i didn't try to precompile yet, this is happening on development mode