Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCharset confusion in prerelease #264
Comments
This comment has been minimized.
This comment has been minimized.
To detect the encoding, on Python 2 we use In debug mode, I see this with Python 2:
Okay, that looks a bit weird. I see
So When I try
|
This comment has been minimized.
This comment has been minimized.
I wonder if it makes sense to reorder our detection code and first try looking for encoding hints before using |
added a commit
that referenced
this issue
Mar 23, 2018
This comment has been minimized.
This comment has been minimized.
I made PR #272 that does this. If you add a marker for the encoding at the top of
Wait, that gives a ReStructuredText error: 'Inline emphasis start-string without end-string.' And the line would appear literally in the rendered html if it would work... Try this:
I think that is the best we can do, given that |
added a commit
that referenced
this issue
Mar 24, 2018
This comment has been minimized.
This comment has been minimized.
Personally I'd prefer a [zest.releaser] config option in setup.cfg for overriding the magic charset detection bits. changelog_encoding = UTF-8 or something like that. |
This comment has been minimized.
This comment has been minimized.
That would be a useful safety valve! |
mauritsvanrees
closed this
in
#272
Mar 26, 2018
This comment has been minimized.
This comment has been minimized.
That could help.
I'll see what I can do. |
mauritsvanrees
reopened this
Mar 26, 2018
This comment has been minimized.
This comment has been minimized.
Done in PR #275. When I put this in
|
This comment has been minimized.
This comment has been minimized.
Released with several other fixes in 6.14.0. |
mgedmin commentedFeb 21, 2018
I was cutting the 2.17.0 release of irclog2html, and saw this:
Note how the changelog text was misidentified as Latin-1 and displayed wrong. The file itself is UTF-8:
Luckily the text is only displayed wrong, not actually written wrong into the file.
My locale settings are correct (
locale charmap
printsUTF-8
). I'm using Python 2.prerelease --version
printsprerelease: error: unrecognized arguments: --version
, but anyway I just did apip install -U zest.releaser
so it's the latest.