Opened 4 years ago

#5411 new defect

Invalid JSON returned for locations with control characters in the display name.

Reported by: s.tannenbaum@… Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:


The following query returns an invalid JSON string.

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.

Change History (0)

Note: See TracTickets for help on using tickets.