Created
January 19, 2015 15:37
-
-
Save philippeowagner/2f62929a9815c50a7080 to your computer and use it in GitHub Desktop.
Replace non-ASCII chars with ?
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
| # based on http://stackoverflow.com/a/20078869/485361 | |
| import re | |
| re.sub(r'[^\x00-\x7F]+','?', "Müller") | |
| # 'M?ller' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment