[ruby-core:62992] [ruby-trunk - Bug #9920] [Open] Ruby does not support Unicode 6.0 emoji, only private-use area Unicode emoji

From: mistydemeo@...
Date: 2014-06-08 05:10:25 UTC
List: ruby-core #62992
Issue #9920 has been reported by Misty De Meo.

----------------------------------------
Bug #9920: Ruby does not support Unicode 6.0 emoji, only private-use area Unicode emoji
https://bugs.ruby-lang.org/issues/9920

* Author: Misty De Meo
* Status: Open
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
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.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next