Which Unicode versions are supported in which OS X and iOS versions?

后端 未结 3 481
无人及你
无人及你 2021-01-18 13:18

Is there a list or chart somewhere that shows which version of Unicode is supported on the various OS X and iOS releases? I can\'t find any documentation from Apple on this.

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 13:44

    Apple is admittedly vague on their Unicode support, but Mac OS X and iOS nominally support Unicode 4.0. See the NSString documentation.

    There are some caveats to be aware of:

    Due to the vast number of characters represented by Unicode (in all its versions), you may need to test to determine if a specific transformation or operation is available for a particular character. However, any character representable by a UTF-16 code point or surrogate pair can be represented by NSString and CFString directly (though their semantic meaning might not be available in older OS versions, and they may render as unrecognized characters there.)

提交回复
热议问题