From: Andy Allan Date: Wed, 15 Oct 2008 16:56:56 +0000 (+0000) Subject: set the db encoding to utf-8, otherwise data is stored incorrectly in db. Can be... X-Git-Tag: live~7622^2~260 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/8651215ec3a01204fa6acdbf0dbe72b9926e586a 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 --- 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