-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated date and unicode handling code. #142
Conversation
The CI build failed on a transient connection error, not my fault this time :) |
To be clear, here's what this PR suggests as a partial solution. The binary protocol decoder, on python 2, implicitly decodes received strings to UTF-8. This breaks the "what you put in is what you get out" expectation, because a user could put in a |
Here's an alternative which is slightly more drastic, but is perhaps a cleaner solution from a technical standpoint -- and I'd love to hear your feedback on this. All strings that |
I like the maintainability this would add, abstracting away differences between python 2 and 3 usage. |
The additional upside by moving to all-unicode when using |
Moving all of This PR is consistent with that goal, but still requires python 2 users to manually convert any received string data to unicode if it was passed in as unicode. Please review and let me know what you think! |
Sorry to keep poking at this, but I'd really appreciate it if we could fix this set of bugs before the holidays start -- they are major concerns on the project I'm working on. |
Updated date and unicode handling code.
sorry @obi1kenobi for the delay :P |
No worries! Thank you for getting to it :) |
Partially addresses #129, in that it shows how to avoid the error (see the updated test case) but does not provide a comprehensive solution.