ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-
ruby1.9.2和mysql2.8.1的encode不匹配问题mysql2.8.1有时候明明返回的是utf8但是却告诉ruby是ascii所以所以,要么呢装一个好点版本的msyql,要么呢,如下?
#lib/mysql_utf8.rb
require'mysql'
classMysql::Result
defencode(value,encoding="utf-8")
String