Saturday, July 3, 2010

[Rails] Re: invalid multibyte character error

> When I try to use multibyte characters in my rails controller I get an
> invalid multibyte characters error
> (<rails_app>/app/controllers/admin_controller.rb:6: invalid multibyte
> char (US-ASCII)).
>
>
> After I start the WEBrick server and go to
> http://localhost:3000/admin/read I get the error. However, if I set #
> encoding: utf-8 on top of the controller file the error disappear.
>
> The question is how can I "officially" correct this error? How can I
> maintain Rails to proper multibyte characters handling?

Is there a solution to this in 2010?
--
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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate