[OSM-talk] Old names
Dave Stubbs
osm.list at randomjunk.co.uk
Fri Apr 4 10:11:01 BST 2008
On Thu, Apr 3, 2008 at 10:49 PM, Christoph Eckert <ce at christeck.de> wrote:
> Hi,
>
>
> > > wasn't there a db issue with semikoli in values when applied to nodes?
> >
> > There was, it's been fixed.
>
> cool. Just for my personal interest: are tags for nodes now saved in a
> separate table or how has it been solved?
>
The API just properly escapes the semi-colons before putting them in the string.
So "key" -> "myval;=\", "key2" -> "val" becomes: "key=myval\s\e\\;key2=val".
This is unescaped again when returning.
Code is here: http://trac.openstreetmap.org/browser/sites/rails_port/lib/tags.rb
More information about the talk
mailing list