解决方法是在application_controller.rb中添加Encoding.default_internal="UTF-8"。这样就不会出现上面的诡异异常了。 参考 http://314858770.iteye.com/blog/687978