Using ruby 1.9.2 and Rails 3 I get an encoding error when I try to run this in seeds.rb:
Fixtures.create_fixtures("#{Rails.root}/db/seed", "countries")
I am sure the .csv file is encoded in UTF-8 and it can be read and parsed using ruby’s CSV class. Is this a Rails 3 encoding issue with fixtures?
I think the problem is in arel. I got the same thing when inserting a string with UTF-8 characters.
Got around it thusly:
Don’t think it will help much with your fixture problem, though…