[Geocoding] [OpenStreetMap] #5411: Invalid JSON returned for locations with control characters in the display name.
    OpenStreetMap 
    trac at noreply.openstreetmap.org
       
    Wed Aug 10 17:56:00 UTC 2016
    
    
  
#5411: Invalid JSON returned for locations with control characters in the display
name.
----------------------------+-------------------------
 Reporter:  s.tannenbaum@…  |      Owner:  geocoding@…
     Type:  defect          |     Status:  new
 Priority:  minor           |  Milestone:
Component:  nominatim       |    Version:
 Keywords:                  |
----------------------------+-------------------------
 The following query returns an invalid JSON string.
 http://nominatim.openstreetmap.org/search?q=Kragujevac+34000&format=json
 The answer contains the display string Нашеље Шумарице followed directly
 by several copies of the '7f' ISO control character before the closing
 quote. This causes parser errors for receiving applications. The JSON spec
 requires all control characters in strings to be escaped, in this case as
 \u007f.
 The presence of the control character is probably just an error in the
 source data, but Nominatim should still return correctly encoded JSON in
 that case.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/5411>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
    
    
More information about the Geocoding
mailing list