CFMutableStringRef stringRef = CFStringCreateMutableCopy(NULL, 0, CFSTR("你好"));
CFStringTransform(stringRef, NULL, kCFStringTransformToLatin, false);
NSLog(@"%@", stringRef);
CFStringTransform(stringRef, NULL, kCFStringTransformStripCombiningMarks, false);
NSLog(@"%@", stringRef);
CFRelease(stringRef);
网友评论