Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Conversation

icyblade
Copy link

UnicodeEncodeError will be raised if there are non-ansi characters(e.g. CJK) in the code.
This PR will solve this problem by encoding codes with UTF-8.

`UnicodeEncodeError` will be raised if there are non-ansi characters(e.g. CJK) in the code.
This PR will solve this problem by encoding codes with UTF-8.
@rkern
Copy link
Owner

rkern commented May 22, 2017

The stream might have a different encoding. If the stream is sys.stdout, then it might have an .encoding attribute that can be inspected to find this out. UTF-8 cannot be assumed.

@icyblade
Copy link
Author

icyblade commented Sep 7, 2017

@rkern Is this PR ready to be merged?

@caethan caethan added the being considered Actively being investigated by maintainers for merging label Feb 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

being considered Actively being investigated by maintainers for merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants