Wednesday, October 31, 2007

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

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home