哪些 OS X 和 iOS 版本支持哪些 Unicode 版本?

发布于 2025-01-07 06:36:15 字数 66 浏览 0 评论 0原文

是否有列表或图表显示各个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

小霸王臭丫头 2025-01-14 06:36:15

我一直在寻找每个 OS X 版本都支持的表情符号。以下是我的发现:

  • Mac OS X 10.5.8 及更高版本支持 Unicode 4.1
  • OS X 10.7.5 及更高版本支持 Unicode 6.1
  • OS X 10.11.5 及更高版本支持 Unicode 8.0

I've been looking for emojis supported by each OS X version. Here are my findings:

  • Mac OS X 10.5.8 and newer supports Unicode 4.1
  • OS X 10.7.5 and newer supports Unicode 6.1
  • OS X 10.11.5 and newer supports Unicode 8.0
秋日私语 2025-01-14 06:36:15

诚然,Apple 在 Unicode 支持方面含糊其辞,但 Mac OS X 和 iOS 名义上支持 Unicode 4.0。请参阅 NSString 文档。

有一些注意事项需要注意:

由于 Unicode(所有版本)表示的字符数量巨大,您可能需要进行测试以确定特定转换或操作是否可用于特定字符。但是,任何由 UTF-16 代码点或代理项对表示的字符都可以直接由 NSStringCFString 表示(尽管它们的语义在旧操作系统版本中可能不可用) ,并且它们可能会在那里呈现为无法识别的字符。)

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.)

眼眸里的那抹悲凉 2025-01-14 06:36:15

目前的 iOS 中是否实现了 Unicode 字符?

诚然,这是 StackOverflow 问题的通用版本 41318999

/// Tests against the existence of a given unicode glyph on the present OS
///
/// - Returns: true if this unicode glyph exists (i.e, not a [?])
func unicodeAvailable() -> Bool {
    let refUnicodeSize: CGFloat = 8
    if let refUnicodePng = Character("\u{1fff}").png(ofSize: refUnicodeSize),
        let myPng = self.png(ofSize: refUnicodeSize) {
        return refUnicodePng != myPng
    }
    return false
}

用法

let code:Character = "\u{2764}" // ❤
print(code.unicodeAvailable())

正确

需要一种方法来创建给定字符的 png 表示形式。

StackOverflow 上给出了完整的描述,有一个开源的GitHub 项目

Is a Unicode Character implemented in the present iOS?

Admittedly a generalized version of StackOverflow question 41318999.

/// Tests against the existence of a given unicode glyph on the present OS
///
/// - Returns: true if this unicode glyph exists (i.e, not a [?])
func unicodeAvailable() -> Bool {
    let refUnicodeSize: CGFloat = 8
    if let refUnicodePng = Character("\u{1fff}").png(ofSize: refUnicodeSize),
        let myPng = self.png(ofSize: refUnicodeSize) {
        return refUnicodePng != myPng
    }
    return false
}

Usage

let code:Character = "\u{2764}" // ❤
print(code.unicodeAvailable())

true

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.

悸初 2025-01-14 06:36:15

我发现 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文