I have a Rails application running on Rails 2.3.9. It works great with ruby 1.8.7. Now I am testing it with ruby 1.9.2.
The application loads until I try to load a page based on a Unicode string. Then I get the notorious coding error:
ActionView :: TemplateError (incompatible character encodings: UTF-8 and ASCII-8BIT) ...
It seems like the problem is that I am getting some rows from the database as ASCII-8BIT.
I know that Rails 3 works with ruby 1.9 and unicode perfectly. I wonder if the backup solution was equal to 2.3.
So, is there a way to get Unicode 2.3.9 rail applications running under ruby 1.9?
source
share