Skip to content

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

License

Notifications You must be signed in to change notification settings

ChurchTao/emoji-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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

Input: Extended_Pictographic# E0.6  [11] (🔊..🔔)    speaker high volume..bell
Output: Extended_Pictographic# E0.6 [11] ([ej=1f50a]..[ej=1f514]) speaker high volume..bell

Input:
fully-qualified     # 🏴󠁧󠁢󠁥󠁮󠁧󠁿 E5.0 flag: England
fully-qualified     # 🏴󠁧󠁢󠁳󠁣󠁴󠁿 E5.0 flag: Scotland
fully-qualified     # 🏴󠁧󠁢󠁷󠁬󠁳󠁿 E5.0 flag: Wales

Output: 
fully-qualified # [ej=1f3f4-e0067-e0062-e0065-e006e-e0067-e007f] E5.0 flag: England 
fully-qualified # [ej=1f3f4-e0067-e0062-e0073-e0063-e0074-e007f] E5.0 flag: Scotland 
fully-qualified # [ej=1f3f4-e0067-e0062-e0077-e006c-e0073-e007f] E5.0 flag: Wales

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published