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

adapter: mysql
database: adatabase
encoding: utf8
username: user
password: password
host: localhost


Post a Comment

Links to this post:

Create a Link

<< Home