我使用kCFStringTransformMandarinLatin
转换中文字沈
,它翻译chen
,但右翻译是shen
,谁可以告诉我原因!
let strName = "沈"
let strNameMutable: NSMutableString = NSMutableString(string: strName)
if CFStringTransform(strNameMutable,nil,kCFStringTransformMandarinLatin, false){
if CFStringTransform(strNameMutable,nil,kCFStringTransformStripDiacritics, false){
let topIndex: String = strNameMutable as String
}
}