I received an incompatible character encodings: UTF-8 and ASCII-8BIT when some characters were found in the database: ñ, á, é, etc.
My surrounding:
- Rails: 3.2.5
- Ruby: 1.9.4p194
- Database: Oracle 10g (10.2.0.1.0)
I can save these characters in a database using Toad.
I tried to write this in the first line of my view:
<% # encoding: utf-8 %>
In enviroment.erb
Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8
But nothing was fixed.
Please can someone advise me to fix this.
Thank.
oracle ruby-on-rails utf-8
Francisco Jacob Jul 13 '12 at 21:00 2012-07-13 21:00
source share