Closed deck34 closed 7 years ago
Even though I can't reproduce it, I think I see a possible solution.
In pyroutelib3/__init__.py, function parseOsmFile
, a line higher from the error, is the actual file's open()
, function. I will add the encoding="utf-8"
parameter later today, hope this solves this problem.
Should be fixed with dc6d515, in version 0.4. Can you upgrade and check if this works now?
Hello. I use Python 3.6.2 on Windows 10 (with non-English localization).
Code fails 'cos Windows has cp1251 as so-called locale preferred encoding but my schema has utf-8. In ElementTree.parse used
source = open(source, "rb")
, if rewriteopen()
tocodecs.open(source, 'rb', 'utf-8')
maybe solved this issue.