Skip to content

Instantly share code, notes, and snippets.

@LucasMagnum
Created March 27, 2012 20:11
Show Gist options
  • Save LucasMagnum/2219870 to your computer and use it in GitHub Desktop.
Save LucasMagnum/2219870 to your computer and use it in GitHub Desktop.
UTF-8 KILLER!
replacer = lambda s: s.replace('Ã', 'Ã').replace('Õ', 'Õ').replace('Á','Á').replace('É', 'É').replace('Í','Í').replace('Ó', 'Ó').replace('Ú', 'Ú').replace('Ç', 'Ç').replace('Â','Â').replace('Ê','Ê').replace('Ô','Ô')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment