forked from nodejs/gyp-next
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proper fix for nodejs#118 Special thanks to @cclauss
- Loading branch information
1 parent
baef940
commit 67393c1
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str.encode()
exists andbytes.decode()
exists but the opposites do NOT exist. This is on purpose.https://docs.python.org/3/howto/unicode.html#converting-to-bytes
A way to remember this is "We decode bytes so that humans can read the strings and we encode strings so that computers can read the bytes."