Project

General

Profile

Actions

Bug #9920

closed

Ruby does not support Unicode 6.0 emoji, only private-use area Unicode emoji

Added by mistydemeo (Misty De Meo) about 8 years ago. Updated almost 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
[ruby-core:62992]

Description

Translating emoji characters between Unicode and encodings like Shift JIS uses Unicode characters in the private-use range, instead of Unicode emoji characters.

Here's an example:

The SJIS character F6DB is an emoji representing an artist's palette. It's one of the characters that was standardized in Unicode 6.0; its official character is 🎨 (U+1F3A8). When Ruby encodes this character from SJIS into UTF-8, however, it instead uses U+E502; this is a character in the private use area that was used by SoftBank's non-standard emoji prior to Unicode 6.

Ruby also does not correctly support the reverse operation; when I attempt to encode U+1F3A8 into Shift-JIS, Ruby raises an exception rather than correctly encoding the character to F6DB.

Updated by naruse (Yui NARUSE) almost 8 years ago

  • Status changed from Open to Rejected

There are some SJIS variants which includes Emoji.
Therefore you must which variant will you use.

Use SJIS-DoCoMo, SJIS-KDDI, or SJIS-SoftBank instead of SJIS.

Actions

Also available in: Atom PDF