Suppose I have the String value with special accents :
éáüîāṁṇār̥
Is there a universal/dynamic way to convert/strip these types of characters down to a basic formatting like ?..
eauiamnar
Suppose I have the String value with special accents :
éáüîāṁṇār̥
Is there a universal/dynamic way to convert/strip these types of characters down to a basic formatting like ?..
eauiamnar
Use stringByFoldingWithOptions
and pass .DiacriticInsensitiveSearch
let s = "éáüîāṁṇār̥"
let r = s.stringByFoldingWithOptions(.DiacriticInsensitiveSearch, locale: nil)
print(r) // prints eauiamnar