Opened 12 years ago

Closed 7 years ago

#1444 closed defect (wontfix)

tiledata2/initialParse: UnicodeEncodeError

Reported by: simon.legner@… Owned by: ojw
Priority: major Milestone:
Component: utils Version:
Keywords: tiledata2 python exception unicode Cc:



Executing the following command leads to an UnicodeEncodeError.

bzcat austria.osm.bz2 | ./


  • Using tiledata2 rev 9924
  • Austrian place names often contain umlauts


Starting ways
Traceback (most recent call last):
  File "./", line 301, in <module>
    a = osmParser(sys.stdin, db)
  File "./", line 250, in __init__
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/", line 123, in parse
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/", line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/", line 315, in end_element
  File "./", line 291, in endElement
  File "./", line 162, in storeWay
    data += self.packWay(wid, waynodes, style, tags)
  File "./", line 206, in packWay
    packedTags += self.packTag("N", tags, 'name')
  File "./", line 216, in packTag
    string = str(string)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 14: ordinal not in range(128)

Change History (1)

comment:1 Changed 7 years ago by iandees

Resolution: wontfix
Status: newclosed

Cleaning aging tickets.

Note: See TracTickets for help on using tickets.