Rails 3 Ruby 1.9.3 utf-8 编码错误
invalid byte sequence in utf-8
解决的办法是,改my.cnf
default-character-set = utf8
default-collation = utf8_general_ci
问题是mysql 5.5修改了参数名
character_set_server = utf8
collation_server = utf8_general_ci
This is the associated launchpad bug report: https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/958120.