You may need to do more extensive changes at the DB connector level
and your configuration but try this for a quick fix. Add to the the
top of your breaking views:
<%# coding: UTF-8 %>
Harry
On Feb 24, 7:41 am, Anshu Agr
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Hi,
>
> I just updated my rails app from 2.3.5 -> 2.3.10 and started hitting
> this utf-8 encoding issue in my some views. The views use gsub and
> trunacate ruby functions.
>
> invalid byte sequence in US-ASCII
>
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.10/lib/active_support
/core_ext/object/blank.rb:68:in
> `=~''
>
> recmend@recmend:~/recmend/featureblogr$ rails -v
> Rails 2.3.10
> recmend@recmend:~/recmend/featureblogr$ ruby -v
> ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
> recmend@recmend:~/recmend/featureblogr$
>
> recmend@recmend:~/recmend/featureblogr$ gem -v
> 1.5.2
>
> Any help on fixing this issue is appreciated.
>
> --
> 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.