accent problem in Rails and MySQL
I was getting the those diamonds with the face for every character with an accent. Had to just tell the MySQL to use UTF-8 encoding.
In database.yml
development:
adapter: mysql
database: adatabase
encoding: utf8
username: user
password: password
host: localhost
In database.yml
development:
adapter: mysql
database: adatabase
encoding: utf8
username: user
password: password
host: localhost
0 Comments:
Post a Comment
<< Home