Removing Accented (Diacritic) Characters From Strings in Rails
If you have a huge list of text records with accented characters and want to get rid of the accented (diacritic) characters because you want to keep the data ASCII-only, Rails offers a simple method to get rid of accented characters without having to go through the pain of writing complex Regex matchers.
I18n.transliterate "São Paulo"=> "Sao Paulo"
As per the official documentation, the `transliterate` method replaces non-ASCII characters with an ASCII approximation.
NOTE: In case, an ASCII Approximation for a non-ASCII character is not found, the character is replaced with a `?`.