config.encoding = "utf-8" in application.rb don't works #2949

daniel2d2art opened this Issue Sep 8, 2011 · 2 comments


None yet
2 participants

In application.rb says:
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"

But we continue getting the error: "invalid multibyte char (US-ASCII)"
It occurs in our "models" with accentuated characters.
We know its for ruby 1.9.2 news at encoding characters
We solve temporally with setting "# encoding: utf-8" on top of these files, but we believe that the purpose of the config.encoding = "utf-8" in application.rb is precisely to establish this encoding for default.

Rails 3.1.0
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
rake 0.9.2
gem 1.8.10

See you ...


tenderlove commented Sep 8, 2011

This is a duplicate.

@tenderlove tenderlove closed this Sep 8, 2011

back navigation post... my apologies

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