Special dash character conversion
RomanKornev opened this issue · 5 comments
RomanKornev commented
GNU Bazaar
special dash character –
gets converted to –
using the script.
RomanKornev commented
I fixed it for now, but a more permanent solution is still needed.
mahmoud commented
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!
RomanKornev commented
I was running the script under Python 3.7.2 on Windows 10.
RomanKornev commented
Issue is still present after 65b480c.
At this line it's already tainted:
RomanKornev commented
Found it:
data = yaml.safe_load(open(path, encoding='utf-8'))
This code works fine.