Sample code for 30+ languages & platforms
Swift

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 Swift Downloads

Swift

func chilkatTest() {
    var success: Bool = false

    var s: String? = "Números para Mí (Student Edition, Spanish)"

    let sb = CkoStringBuilder()!
    success = sb.append(value: s)
    sb.removeAccents()

    print("\(sb.getAsString()!)")

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

}