[OSM-dev] REST API encoding

Thomas Walraet thomas at walraet.com
Tue Jul 11 13:54:37 BST 2006


Thomas Walraet a écrit :
> 
> If someone has the time to look at this... The server should only use 
> UTF-8 (as it does actually for ways in the map request)

I withdraw that. Actual server response for way in the map request is wrong.


> http://www.openstreetmap.org/api/0.3/map?bbox=2.35050892829895,48.849458022965294,2.3580191135406494,48.85298789870628 
> 
> <?xml version="1.0"?>
> <osm version="0.3" generator="OpenStreetMap server">
> [..]
>     <tag k="name" v="t&#xC3;&#xA9;st"/>

It should be <tag k="name" v="t&#xC3A9;st"/> if we want to use unicode 
entities.

The actual response seems to be an UTF-8 string encoded as if it was 
ISO-8859-1.




More information about the dev mailing list