From 8651215ec3a01204fa6acdbf0dbe72b9926e586a Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 15 Oct 2008 16:56:56 +0000 Subject: [PATCH] set the db encoding to utf-8, otherwise data is stored incorrectly in db. Can be seen by roundtrip truncating at 255 bytes instead of 255 chars. Connection setting (here) is independant of mysql setup --- config/database.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index fe47e11aa..cc3f9a1a5 100644 --- a/config/database.yml +++ b/config/database.yml @@ -16,6 +16,7 @@ development: username: openstreetmap password: openstreetmap host: localhost + encoding: utf8 # Warning: The database defined as 'test' will be erased and # re-generated from your development database when you run 'rake'. @@ -26,6 +27,7 @@ test: username: osm_test password: osm_test host: localhost + encoding: utf8 production: adapter: mysql @@ -33,4 +35,4 @@ production: username: osm password: osm host: localhost - + encoding: utf8 -- 2.39.5