Created
August 23, 2013 02:23
-
-
Save MachinesAreUs/6314934 to your computer and use it in GitHub Desktop.
Cómo transformar acentos, diéresis, 'ñ' y otros caracteres a su símil más directo.
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
require 'I18n' | |
I18n.transliterate("Agustín") == "Agustin" # => true | |
I18n.transliterate("año") == "ano" # => true | |
I18n.transliterate("güero") == "guero" # => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment