views:

141

answers:

0

Hello, I'm trying to migrate my app to Ruby 1.9, however ActiveRecord keeps retrieving records out of my MySQL database with an ASCII encoding, causing "incompatibility between utf-8 and ASCII" like errors. I've tried setting the "encoding: utf-8" in the database.yml file, and I've also tried putting " #coding: utf-8 " at the top the errant file with no luck. I thought it might be that the fields in my database were the issue, but even after converting everything over to utf-8, the incompatibility errors still exist.

Is there perhaps something else in MySQL that defines the encoding to ActiveRecord that I am missing here?