我正在开发一个应该使用 i18n 技术的refinerycms 实例,但是在用俄语保存页面时,我不断收到以下错误:
ActiveRecord::StatementInvalid in Admin::PagesController#update
Mysql2::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=': SELECT COUNT(*) FROM `slugs` WHERE `slugs`.`name` = 'Ñтраница-не-найдена' AND `slugs`.`scope` IS NULL AND `slugs`.`locale` = 'ru' AND (`slugs`.sluggable_id = 2 AND `slugs`.sluggable_type = 'Page')
关于为什么会发生这种情况的任何想法?在我的 database.yml 中,我将编码设置为 utf8