I’m getting the error “invalid byte sequence in US-ASCII” when using
i18n on
Rails 3.0.0beta with Ruby 1.9.1. I’ve searched extensively on Google and
the
problem seems to happen with 2.3.x versions as well (when using Ruby
1.9.1).
I just set the default language to portuguese and added this locale
file:
http://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/pt-BR.yml.
Then, when I use a scaffold-generated form with validation and the
validation fails, the line of f.error_messages raises this ArgumentError
of
invalid byte sequence. Does anybody knows what is happening? Is this a
Rails
bug? (To reproduce the error, just run this
apphttp://lailsonbandeira.com/files/demoapp.zip,
go to /users/new and submit the empty form.)
Thanks guys
LAILSON BANDEIRA
http://lailsonbandeira.com/