Function diacritics::remove_diacritics
source · pub fn remove_diacritics(string: &str) -> String
Expand description
This function removes diacritics and weird character and returns a more standardized string.
For a full list of transformations, you can view the source code.
let new_string = diacritics::remove_diacritics("TÅRÖÄÆØ");
assert_eq!("TAROAAO", new_string);