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

This commit is contained in:
Andy Allan 2008-10-15 16:56:56 +00:00
parent a5e5cbc739
commit 8651215ec3

View file

@ -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