Opened 8 months ago
Invalid JSON returned for locations with control characters in the display name.
|Reported by:||s.tannenbaum@…||Owned by:||geocoding@…|
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.