views:

274

answers:

1

I have to connect to a legacy postgre database wich has ENCODING = 'SQL_ASCII';. How do I set this encoding in my rails app?

+1  A: 

You can set this in your database.yml:

development:
  adapter: postgresql
  encoding: sql_ascii
  database: appname_development
  username: root
  password:
  host: localhost
Mike Breen