-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
handle unicode strings properly #167
Conversation
This change is not compatible with Python 3 (see Travis build). Do you think you can fix it? Thanks |
Hi @jodok Are you sure the issue is from Encoding in Python is notoriously known to be hard. I think the problem may come from environment or terminal. I could not reproduce your issue, but as you linked to #36, I tried to print I guess my Windows terminal is for some reason correctly configured to handle unicode, I would be disappointed not to be able to enjoy it with |
my root cause is this issue: Azure/azure-cli#6408 - and there the issue only occurs if it is called in an non-interactive session (e.g. from jenkins). |
@wiggin15 are you happy with my fixup? |
Hi @jodok . The fixup for Python 3 looks good but I'm not sure about the solution. If I understand correctly, this change will skip and ignore non-ascii character, which may be a problem, for two reasons:
Perhaps we should consider trying to encode with |
Hey. FYI, yesterday I created a PR to test releases before we push them to PyPI. When that is merged, I'll be more confident about resuming merges and releases. I'll try to look at this PR soon. Thank you for creating it! |
Hey. Huge thanks for this idea. But I'm going to close this for now, because:
Please do re-open or re-submit if you think I'm making a mistake, or if you address the above problems. Many thanks! |
#36
Azure/azure-cli#6408