哪些 OS X 和 iOS 版本支持哪些 Unicode 版本?
是否有列表或图表显示各个 OS X 和 iOS 版本支持哪个版本的 Unicode?我找不到苹果公司关于此的任何文档。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我一直在寻找每个 OS X 版本都支持的表情符号。以下是我的发现:
I've been looking for emojis supported by each OS X version. Here are my findings:
诚然,Apple 在 Unicode 支持方面含糊其辞,但 Mac OS X 和 iOS 名义上支持 Unicode 4.0。请参阅 NSString 文档。
有一些注意事项需要注意:
由于 Unicode(所有版本)表示的字符数量巨大,您可能需要进行测试以确定特定转换或操作是否可用于特定字符。但是,任何由 UTF-16 代码点或代理项对表示的字符都可以直接由
NSString
和CFString
表示(尽管它们的语义在旧操作系统版本中可能不可用) ,并且它们可能会在那里呈现为无法识别的字符。)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
andCFString
directly (though their semantic meaning might not be available in older OS versions, and they may render as unrecognized characters there.)目前的 iOS 中是否实现了 Unicode 字符?
诚然,这是 StackOverflow 问题的通用版本 41318999。
用法
需要一种方法来创建给定字符的 png 表示形式。
StackOverflow 上给出了完整的描述,有一个开源的GitHub 项目。
Is a Unicode Character implemented in the present iOS?
Admittedly a generalized version of StackOverflow question 41318999.
Usage
Requires a method to create a png representation of a given character.
A complete description is given on StackOverflow, with an open source GitHub project.
我发现 Unicode 版本 6 (2010) 中引入的字符可能与 Mojave 或以前的版本不兼容。我正在运行最新的 Mojave,无法渲染 U+2099 : https://www. compart.com/en/unicode/U+2099
I've found that characters introduced in Unicode version 6 (2010) may not be compatible with Mojave or previous releases. I am running latest Mojave and can't render U+2099 : https://www.compart.com/en/unicode/U+2099