Thursday, January 18, 2007

Unicode in Rails application

To avoid Unicode related problems, add the following line to the environment.rb file

$KCODE = 'u'

and add the following line to the database.yml file while
establishing a database connection

encoding: utf8

In Rails 1.2 , Unicode hack is a built in feature




0 comments: