lieblerj / poi_converter

Convert openandromaps poi databases into Locus osm.db format
Apache License 2.0
7 stars 3 forks source link

Translated pois not encoded correctly #2

Closed sphoto closed 5 years ago

sphoto commented 5 years ago

Tags (POIs) translated via 'translation.txt' are not encoded as UTF, therefore not shown correctly when it contains german umlauts:

Examples: 'Berghütte' is shown as 'Berghütte' 'Sehenswürdigkeit' -> 'Sehenswürdigkeit'

lieblerj commented 5 years ago

Hi, i did not observe this problem on my setup, but it seems a ISO 8859-1 to UTF conversion problem.

What operating system are you using?

sphoto commented 5 years ago

The problem is solved, when you change line 14 of 'poiwriter.py' to: with open(translation_file,'r',encoding='utf-8') as f:

Btw, I am using Win10, x64