Skip to main content

remove_diacritics

Function 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);