Tell mysql gem to use UTF-8 encoding.
Make sure you also convert your mysql database encoding to utf-8:
- configure mysql at /etc/mysql/my.cnf as follows:
[client]
default-character-set = utf8
[mysqld]
character-set-server = utf8
collation-server=utf8_general_ci
- restart mysql: /etc/init.d/mysql restart
- the commands to convert database:
mysqldump -u root -p --opt --default-character-set=latin1
--skip-set-charset  DBNAME > DBNAME.sql
sed -e 's/CHARSET=latin1/CHARSET=utf8/g' DBNAME.sql > DBNAME_UTF8.sql
sed -e 's/COLLATE=utf8_unicode_ci//g' DBNAME_UTF8.sql >
DBNAME_UTF8_WITHOUT_COLLATE.sql
mysql -u root -p DBNAME < DBNAME_UTF8_WITHOUT_COLLATE.sql
Merge branch 'rails3' of github.com:myGrid/biocatalogue into rails3
Bumbed up the Rails 3 version of BioCatalogue to 2.0.0.