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:
parent
a5e5cbc739
commit
8651215ec3
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue