Hi!
I have ran on problem with collations. In database.yml I have set:
encoding: utf8, but when in console run:
ActiveRecord::Base.connection.collation
=> "latin1_swedish_ci"
It is Rails 2.1, mysql gem 2.7, mysql 5.1.22. This leads to errors like:
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE) for operation 'like': SELECT * FROM `tags`
WHERE (name LIKE '. UTF-8 STRING.') LIMIT 1
Table are set for UTF-8 and server is run with
mysql_args=" --character-set-server=utf8
--collation-server=utf8_general_ci"