From 5dde6403ea39acc26c1c65e211a2adfb48c14dbb Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 11 Jan 2011 05:53:15 +0100 Subject: [PATCH] =?UTF-8?q?add=20comment=20in=20database=20template=20on?= =?UTF-8?q?=20how=20to=20configure=20rails=20to=20use=20your=20utf8=20data?= =?UTF-8?q?base.=20If=20you=20experience=20=3F=20where=20you=20expect=20?= =?UTF-8?q?=C3=A9,=20uncomment=20this=20setting=20in=20your=20database.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.yml.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/database.yml.tmpl b/config/database.yml.tmpl index 00d192cd..13c78dc6 100644 --- a/config/database.yml.tmpl +++ b/config/database.yml.tmpl @@ -1,6 +1,9 @@ development: adapter: mysql database: tracks + # set this if you are storing utf8 in your mysql database to handle strings + # like "Réné".Not needed for sqlite. For PostgreSQL use encoding: unicode + # encoding: utf8 host: localhost username: root password: @@ -12,6 +15,9 @@ test: &TEST production: adapter: mysql database: tracks + # set this if you are storing utf8 in your mysql database to handle strings + # like "Réné".Not needed for sqlite. For PostgreSQL use encoding: unicode + # encoding: utf8 host: localhost username: root password: