Andy Allan wrote: > On Wed, Nov 19, 2008 at 10:27 AM, Tom Hughes <[EMAIL PROTECTED]> wrote: > >> Matthias Brandt wrote: >> >>> The 3rd entry has an german umlaut, so I think libxml has problems with >>> reading/processing UTF-8 chars. What can I do? Obviously, you don't have >>> these problems at openstreetmap.org... >>> >> No, but then our database has it's character encodings buggered up in >> interesting ways... >> >> I assume that your database encoding is set to UTF-8? >> >> The next question is then how you got your data into the database? Did >> you do it through rails? or with osmosis? or something else? >> >> One thing you may to try is adding "encoding: utf8" to the database >> connection details in config/database.yml and seeing if that helps. >> > > Also, be careful with the command line mysql client. By default it'll > connect to a utf8 database with a latin1 connection, so bona-fide utf8 > characters in a utf8 db viewed using mysql client on a utf8 aware > terminal will (still) be borked. You need to supply > --default-character-set=utf8 parameter. > Nice to know, thank you. But the MySQL-Client is not my problem. > Also also, I'd encourage you to try the 0.6 branch, since it's first > where all the action is, and secondly there's unit tests in there for > checking that the API can store utf8 characters correctly in the db. > Running 'rake test:units' (or even just 'rake test') will let you know > if there's a charset problem, which will help with the diagnosis. > Thanks for the invitation :-). But I'm developing for my bachelor thesis an editor, so I have to rely on a stable API... > One thing you may to try is adding "encoding: utf8" to the database > connection details in config/database.yml and seeing if that helps. That solved my first problem. Thank you!
Actually, I got hung up with the next problem. When trying to upload a new node via curl [1], I get "ActionController::UnknownAction (No action responded to create)" error page (404) [2] and an error log[3]. But the file node_controller.rb as well as the action "create" inside it exist. FYI: I use Webrick as Webserver. Can this be the problem? Matthias [1] http://wiki.openstreetmap.org/wiki/Using_curl_to_upload_data [2] http://sprunge.us/aiZR [3] http://sprunge.us/EbKW _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

