Closed gazpachoking closed 6 years ago
I guess my first question before working on a fix is: Do we need to make decode_utf8 be optional? My feeling is that text should be text, on both python 2 and 3 automatically. (i.e. py2 unicode, py3 str)
I have some torrents with invalid utf-8 in them, I'll test with them and see how it's handled.
You're probably right that it doesn't make sense as an option if everything can be decoded.
... the double decoding is, of course, a bug.
Although it's not the biggest of libraries, I want to do proper deprecation.
The only way I could find without breaking stuff on a release is to do it in two stages
What do you think about that ? It feels like a lot of work though, to do it in two stages.
My suggestion is in #25
Yeah, seems like a plan to me. Made a PR against your PR branch with some more tests.
Seems if the client is set to decode utf8 already, we have a problem creating an exception returned from deluge: