lib/slug.rb
def strip_diacritics(string)
      require 'iconv'
      require 'unicode'
      Iconv.new("ascii//ignore//translit", "utf-8").iconv(Unicode.normalize_KD(string))
    end
# Remove diacritics from the string.
Remove diacritics from the string.
Remove diacritics from the string .
def strip_diacritics(string)
      require 'iconv'
      require 'unicode'
      Iconv.new("ascii//ignore//translit", "utf-8").iconv(Unicode.normalize_KD(string))
    end
def strip_diacritics ( string ) require 'iconv' require 'unicode' Iconv . new ( "ascii//ignore//translit" , "utf-8" ) . iconv ( Unicode . normalize_KD ( string ) ) end
Remove diacritics from the string.
Remove diacritics from the string .
string