Skip to content

Echo#1

Open
edpark13 wants to merge 2 commits intomasterfrom
echo
Open

Echo#1
edpark13 wants to merge 2 commits intomasterfrom
echo

Conversation

@edpark13
Copy link
Owner

@edpark13 edpark13 commented Mar 2, 2015

No description provided.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the message passed is already a byte string, this will cause problems in Python 2. Python will see that you want to encode a unicode object, note that it has a byte string, and attempt to convert the byte string into a unicode object. Since you don't have control over that conversion, you'll get the sys.defaultencoding which is likely ASCII, and if your byte string had extended code points in it, it would break.

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