add comment in database template on how to configure rails to use your utf8 database.

If you experience ? where you expect é, uncomment this setting in your database.yml
This commit is contained in:
Reinier Balt 2011-01-11 05:53:15 +01:00
parent a487b7f32f
commit 5dde6403ea

View file

@ -1,6 +1,9 @@
development:
adapter: mysql
database: tracks
# set this if you are storing utf8 in your mysql database to handle strings
# like "Réné".Not needed for sqlite. For PostgreSQL use encoding: unicode
# encoding: utf8
host: localhost
username: root
password:
@ -12,6 +15,9 @@ test: &TEST
production:
adapter: mysql
database: tracks
# set this if you are storing utf8 in your mysql database to handle strings
# like "Réné".Not needed for sqlite. For PostgreSQL use encoding: unicode
# encoding: utf8
host: localhost
username: root
password: