mvexel / overpass-api-python-wrapper

Python bindings for the OpenStreetMap Overpass API
Apache License 2.0
367 stars 90 forks source link

Encoding #32

Closed smfloery closed 8 years ago

smfloery commented 9 years ago

I am having problem with german umlauts like ä, ö, ü or ß....; the response for one request is:

{u'elements': [{u'lat': 47.861882, u'lon': 15.202494, u'type': u'node', u'id': 2949081313, u'tags': {u'natural': u'peak', u'man_made': u'survey_point', u'alt_name': u'Vaterberg', u'name': u'\u0102\x96tscher', u'ele': u'1893'}}], u'version': 0.6, u'osm3s': {u'timestamp_osm_base': u'2015-08-27T11:14:02Z', u'copyright': u'The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.'}, u'generator': u'Overpass API'}

The name Tag shoule be "Ötscher"...but this seems to be no valid utf8 encoding as name.encode('utf-8') produces no valid results....