Read UTF8 character in specify position from a NSString
问题 NSString* str = @"1二3四5"; NSLog(@"%c",[str characterAtIndex:0]); NSLog(@"%c",[str characterAtIndex:1]); NSString - characterAtIndex works well on ASCII chars, but how could I get the UTF8 character at the index of 2? -- updated -- It seems unichar(16bits) can't represent all the UTF8 encoding strings(8bites to 32bites), so are there any method to get the char from NSString? 回答1: Unfortunately Dave's answer doesn't actually do what you want. The index supplied to