mahmoud/awesome-python-applications

Special dash character conversion

RomanKornev opened this issue · 5 comments

GNU Bazaar special dash character gets converted to – using the script.

I fixed it for now, but a more permanent solution is still needed.

Interesting. I see no such encoding issue. It's possible this is because I generate the doc using Python 3 (and having come up on Python 2, I just by chance wrote Python 2-compatible code). I'll add a from __future__ import unicode_literals, which I think should fix this in future.

Regarding PR #51, a normal hyphen is probably fine for now. Thanks!

I was running the script under Python 3.7.2 on Windows 10.

Issue is still present after 65b480c.
At this line it's already tainted:

data = yaml.safe_load(open(path))

Found it:

data = yaml.safe_load(open(path, encoding='utf-8'))

This code works fine.