Sample code for 30+ languages & platforms
Rust

Remove Accent Marks from Chars in String

Removes the accent marks from Latin and Central European chars in a string.

Note: The RemoveAccents method was added in Chilkat v9.5.0.91. This example requires Chilkat v9.5.0.91 or greater.

Chilkat Rust Downloads

Rust

let s = "Números para Mí (Student Edition, Spanish)".to_string();

let sb = chilkat::StringBuilder::new();
let _ = sb.append(&s).is_ok();
let _ = sb.remove_accents();

println!("{}", sb.get_as_string().unwrap_or_default());

// Output:
// Numeros para Mi (Student Edition, Spanish)