I got the error incompatible character encodings: UTF-8 and ASCII-8BIT, when the view found in the database some characters like: ñ, á, é, etc. My enviroment is: Rails: 3.2.5 Ruby: 1.9.4p194 Database: Oracle 10g (10.2.0.1.0) I can save this characters in the database, using Toad. I tried to write this, in the first line of my view: <% # encoding: utf-8 %> In enviroment.erb Encoding.default_externa
![Error: Incompatible character encodings: UTF-8 and ASCII-8BIT](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)