Created
December 8, 2016 07:44
-
-
Save jovianlin/d95490d7b70572ec1da26170b26fc4a1 to your computer and use it in GitHub Desktop.
Quickfix for encoding errors
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
def fix_encoding(some_str): | |
return ''.join([c for c in some_str if 0x20 <= ord(c) <= 0x78]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment