7

Idiosyncratic Ruby: Unicode Version Mapping

 3 years ago
source link: https://idiosyncratic-ruby.com/73-unicode-version-mapping.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

The Ruby core team cares a lot about Unicode, and this is why we have pretty good Unicode support in the language.

Even though the Unicode standard evolves constantly - it gets updated at least once a year - Ruby's Unicode support is often only a little bit behind the current version of Unicode. The following tables list which Ruby version supports which version of Unicode / Emoji:

Ruby / Unicode

Ruby Version Unicode Version 2.7 12.1.0 2.6.3+ 12.1.0¹ 2.6.2 12.0.0 2.6.1- 11.0.0 2.5 10.0.0 2.4 9.0.0 2.3 8.0.0 2.2 7.0.0 2.1 6.1.0 2.0 6.1.0 1.9 5.2.0

¹ Unicode 12.1 introduced a single character

Starting with Ruby 2.4, you can find out your Ruby version's Unicode support with:

RbConfig::CONFIG["UNICODE_VERSION"]

Ruby / Emoji

Ruby Version Emoji Version 2.7 12.1 2.6.2+ 12.0 2.6.1- 11.0 2.5 5.0

Starting with Ruby 2.6, you can find out your Ruby version's Emoji support with:

RbConfig::CONFIG["UNICODE_EMOJI_VERSION"]

Also See

More Idiosyncratic Ruby


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK