ITeye博客

Rails 3 Ruby 1.9.3 utf-8 编码错误

夜鸣猪 · 2012-07-12 04:27 · 编程语言 · Markdown

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.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。