Skip to content

Instantly share code, notes, and snippets.

@MachinesAreUs
Created August 23, 2013 02:23
Show Gist options
  • Save MachinesAreUs/6314934 to your computer and use it in GitHub Desktop.
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.
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