Created
April 29, 2010 13:21
-
-
Save lylo/383591 to your computer and use it in GitHub Desktop.
Converting accented latin characters
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
# Converting accented latin characters | |
"Marqués".mb_chars.normalize(:kd).gsub(/[^\x00-\x7F]/n,'') | |
=> "Marques" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment