method
transliterate
transliterate(string)
public
Hide source
# File activesupport/lib/active_support/inflector.rb, line 284 def transliterate(string) string.mb_chars.normalize(:kd). # Decompose accented characters gsub(/[^\x00-\x7F]+/, '') # Remove anything non-ASCII entirely (e.g. diacritics). end