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 app<http://lailsonbandeira.com/files/demoapp.zip>, go to /users/new and submit the empty form.) Thanks guys -- LAILSON BANDEIRA http://lailsonbandeira.com/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Konstantinos Pachnis
2010-Mar-26 09:38 UTC
Re: "invalid byte sequence in US-ASCII" on i18n form
Hey, I had the exact same problems, still have, and I use 1.8.7. There are a lot of recommendations and patches in lighthouse for rails 2.3.x, but I really haven''t tried anything. Konstantinos On 26 March 2010 02:48, Lailson Bandeira <lailsonbm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 app<http://lailsonbandeira.com/files/demoapp.zip>, > go to /users/new and submit the empty form.) > > Thanks guys > -- > LAILSON BANDEIRA > http://lailsonbandeira.com/ > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hello, i have the same problem, did you solve it ? Pierre. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rousseau Pierre
2010-Oct-23 10:15 UTC
Re: "invalid byte sequence in US-ASCII" on i18n form
aha, i went back to ruby 1.8.7 and it works ... thx rvm :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Did you solve the problem? On Oct 23, 12:15 pm, Rousseau Pierre <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> aha, i went back to ruby 1.8.7 and it works ... thx rvm :) > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rousseau Pierre
2010-Nov-13 17:24 UTC
Re: "invalid byte sequence in US-ASCII" on i18n form
Martin P wrote in post #961213:> Did you solve the problem?not really, i used rvm (http://rvm.beginrescueend.com/) to try different ruby/rails versions. Without any change in the code, all is working with ruby 1.8.7 / rails 2.3.x, and not working with ruby 1.9.2 / ruby 2.3.x. Now, i moved to ruby 1.9.2 and rails 3.0.x, and everything is working fine. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.