[OSM-dev] REST API encoding

Thomas Walraet thomas at walraet.com
Tue Jul 11 00:36:27 BST 2006

Thomas Walraet a écrit :
> Did the API encoding change lately ?

This is strange.
I try to add tags, and I had to use accented chars (éèà...)

A few day ago, everything worked fine (with JOSM). Now it work on 
segments, but not on ways !

Look here :

At the left, there is a segment called "tést"
At the bottom-right, there is a way with the same name but it display 
with strange characters (as UTF-8 displayed in ISO-8859-1).

This is the same in JOSM.

But if I request those element directly, I obtain the same value :

<?xml version="1.0"?>
<osm version="0.3" generator="OpenStreetMap server">
   <segment id="321212" from="368126" to="368125" visible="true" 
timestamp="2006-07-11 00:21:24">
     <tag k="name" v="t&#xE9;st"/>

<?xml version="1.0"?>
<osm version="0.3" generator="OpenStreetMap server">
   <way id="2375776" timestamp="2006-07-11 00:15:15">
     <seg id="321242"/>
     <seg id="321241"/>
     <tag k="name" v="t&#xE9;st"/>

More information about the dev mailing list