Skip to content
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

tools/sched: Fix unicode encoding issues #2220

Closed
wants to merge 1 commit into from

Conversation

ekimekim
Copy link
Contributor

@ekimekim ekimekim commented Feb 9, 2017

The response.text and json-parsed string values are both unicode strings.
The print statement requires bytes, as per write(2).
Python is dumb and bad at converting between them properly - in the name of being "safe"
it errors if any non-ascii characters are present, so it works until it doesn't.
We fix this by explicitly encoding as utf-8.

The response.text and json-parsed string values are both unicode strings.
The print statement requires bytes, as per write(2).
Python is dumb and bad at converting between them properly - in the name of being "safe"
it errors if any non-ascii characters are present, so it works until it doesn't.
We fix this by explicitly encoding as utf-8.
@2opremio
Copy link
Contributor

2opremio commented Feb 9, 2017

tools is a subtree of https://github.com/weaveworks/build-tools , please fix is there instead

@ekimekim
Copy link
Contributor Author

ekimekim commented Feb 9, 2017 via email

@2opremio 2opremio closed this Feb 9, 2017
@rade rade deleted the mike/tools/fix-sched-unicode branch July 5, 2017 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants