> I just tried to migrate one of my applications from ruby 1.8 to ruby 1.9 > and get following error: > Showing app/views/layouts/application.html.erb where line #48 raised: > incompatible character encodings: ASCII-8BIT and UTF-8
Most likely, you are outputting content stored in your DB as UTF-8 onto a template that is ASCII. This fix works for me: http://gist.github.com/273741 -- drop this into config/initializers/ruby_191_hacks.rb. I posted more about upgrading to 1.9.1 here: http://earthcode.com/blog/2010/01/rails_on_ruby_191_in_productio.html -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

