-->

Simplest way to extract first Unicode codepoint of

2020-04-08 11:21发布

问题:

For historical reasons, Cocoa's Unicode implementation is 16-bit: it handles Unicode characters above 0xFFFF via "surrogate pairs". This means that the following code is not going to work:

NSString myString = @"