Automatic charset detection#4
Automatic charset detection#4Nyoroon wants to merge 4 commits intomgedmin:masterfrom Nyoroon:patch-1
Conversation
|
You need to add chardet to install_requires in setup.py. |
|
I see chardet detects UTF-8, so why not use it always? I.e. lose the try/except. |
|
I'd also be more comfortable if the input encoding could be specified explicitly, in case chardet guesses wrong. A command-line/config file option perhaps? Say, The default should probably be |
|
Chardet doesn't appear to be very-well maintained: the PyPI page points to https://github.com/erikrose/chardet, which doesn't allow anyone to file issues, and is a fork of https://github.com/dcramer/chardet, which has a bunch of 1-year-old unanswered issues. One of those issues is Python 3 support: dcramer/chardet#7. irclog2html currently supports Python 3. Adding a dependency on chardet breaks that. |
|
Oh, thanks! |
|
https://github.com/sigmavirus24/charade seems better, but not ideal. |
|
I'll test after every code change |
|
Do you still plan to work on this? As you can see on Travis CI, the tests are broken for Python 2.x and 3.x. |
|
Yes, i work on it. |
No description provided.