Modify UnicodeDecodeError text. You'll use utf-8#6
Merged
wrichert merged 2 commits intoluispedro:masterfrom Feb 3, 2015
Merged
Modify UnicodeDecodeError text. You'll use utf-8#6wrichert merged 2 commits intoluispedro:masterfrom
wrichert merged 2 commits intoluispedro:masterfrom
Conversation
Collaborator
|
Thanks, @re4lfl0w. Did you use Python 2.7 or 3? |
Contributor
Author
|
I use Python 2.7 :D from platform import python_version
if python_version().startswith('2'):
text = text.decode('utf-8') |
wrichert
added a commit
that referenced
this pull request
Feb 3, 2015
Modify UnicodeDecodeError text. Use utf-8 in case of Python version is 2.x.
Collaborator
|
Thanks, @re4lfl0w! Just in case you have questions directly to the book itself, feel free to ask them at http://twotoreal.com/u/wr/4/building-machine-learning-systems-in-python/ :-) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I tried to fix UnicodeDecodeError with my valuable a lot of time.
The other people will have to save the time.
Thank you.
p.s: This is My first Pull Request :D