-
-
Save BernardOng/da8540e9536191d340ad432aad78880f to your computer and use it in GitHub Desktop.
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
def remove_non_ascii(self, text): | |
# removes all non-ascii characters | |
return ''.join([i if ord(i) < 128 else '' for i in text]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment