项目作者: ChurchTao

项目描述 :
It works for emoji transform to unicode string. Because our CA 's DB not support utf-8
高级语言: JavaScript
项目地址: git://github.com/ChurchTao/emoji-js.git
创建时间: 2020-08-18T06:42:44Z
项目社区:https://github.com/ChurchTao/emoji-js

开源协议:Apache License 2.0

下载


emoji-js

😊 emoji-data base on https://www.unicode.org/Public/emoji/13.0/emoji-test.txt

Because of my CA’s DB is GBK , my emoji cannot save to DB;

emoji-js can transform emoji to unicode string like [ej=1f3f4]

then they can go into my DB

Thank you for your issue or star!

Installation 😈 how to use => see demo.html

  1. <script src="emoji-js.js"></script>

It works for emoji transform to unicode string. Because our CA ‘s DB not support utf-8

  1. Input: Extended_Pictographic# E0.6 [11] (🔊..🔔) speaker high volume..bell
  2. Output: Extended_Pictographic# E0.6 [11] ([ej=1f50a]..[ej=1f514]) speaker high volume..bell
  3. Input:
  4. fully-qualified # 🏴󠁧󠁢󠁥󠁮󠁧󠁿 E5.0 flag: England
  5. fully-qualified # 🏴󠁧󠁢󠁳󠁣󠁴󠁿 E5.0 flag: Scotland
  6. fully-qualified # 🏴󠁧󠁢󠁷󠁬󠁳󠁿 E5.0 flag: Wales
  7. Output:
  8. fully-qualified # [ej=1f3f4-e0067-e0062-e0065-e006e-e0067-e007f] E5.0 flag: England
  9. fully-qualified # [ej=1f3f4-e0067-e0062-e0073-e0063-e0074-e007f] E5.0 flag: Scotland
  10. fully-qualified # [ej=1f3f4-e0067-e0062-e0077-e006c-e0073-e007f] E5.0 flag: Wales