kelvan / gotoVienna

PySide app for harmattan(N9), searching on wienerlinien.at; see https://github.com/kelvan/sailtoVienna for SailfishOS Version
https://www.logic.at/staff/kelvan/python/gotovienna/index.html
GNU General Public License v3.0
3 stars 0 forks source link

umlauts in iTip #6

Closed chro closed 13 years ago

chro commented 13 years ago

iTip seems not to work with station names containing German umlauts, see e.g.:

root@gamma:/root/kelvan-gotoVienna-6a33e95$ python iTip.py -l 1 -s Börse Traceback (most recent call last): File "iTip.py", line 127, in if s.startswith(station[0]) or station[0].startswith(s): UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

maybe unicode handling in general is broken?

kelvan commented 13 years ago

fixed please test