Removing Unicode U+2018 LEFT SINGLE QUOTATION MARK like ‘Ali to Ali in swift
问题 How to remove Unicode U+2018 LEFT SINGLE QUOTATION MARK from strings like - Ghulam ‘Ali, ‘Ali Khel,‘Ali Sher ‘Alaqahdari. I want to remove occurrences of ‘A || ‘a || ‘U || ‘u in a string to A a U u respectively. I tried var myString = "Sozmah Qal‘ah" var diacriticRemovedString = myString.folding(options: .diacriticInsensitive, locale: Locale.current) print(diacriticRemovedString) but it doesn't work. 回答1: Since the U+2018 character doesn't appear to be treated as a diacritic, you can simple