标签: ruby-on-rails postgresql encoding character-encoding
我必须连接到具有 ENCODING ='SQL_ASCII'; 的传统postgre数据库。如何在我的rails应用程序中设置此编码?
答案 0 :(得分:3)
您可以在database.yml中设置:
development: adapter: postgresql encoding: sql_ascii database: appname_development username: root password: host: localhost