Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emojify not working with multi symbol emojis #18

Open
nudja opened this issue Feb 27, 2020 · 2 comments
Open

emojify not working with multi symbol emojis #18

nudja opened this issue Feb 27, 2020 · 2 comments

Comments

@nudja
Copy link

nudja commented Feb 27, 2020

emojify does not reverse hexHtmlify for 3 and 4 character emojis
e.g.
EmojiUtils.emojify(EmojiUtils.hexHtmlify("πŸ‘¨β€πŸ‘¨β€πŸ‘¦β€πŸ‘¦") produces "πŸ‘¨β€πŸ‘¨β€πŸ‘¦β€"
not "πŸ‘¨β€πŸ‘¨β€πŸ‘¦β€πŸ‘¦"

It is not replacing the joiner html encoding &#x200d.

(the github preview is converging the output back to the single emoji character so look at the original input)

(trying to expand what it actually produces as github preview is losing the expansion)

The following is what it produces (without the single quotes!)

EmojiUtils.emojify(EmojiUtils.hexHtmlify("πŸ‘¨β€πŸ‘¨β€πŸ‘¦β€πŸ‘¦") produces
πŸ‘¨'&#x200d'; 'πŸ‘¨&#x200d';'πŸ‘¦&#x200d';πŸ‘¦'

Hope this can be fixed

@hellomsg
Copy link

maybe we should detect a emoji depend on the emoji data file rather than depend on a limited and embedded manually maintained json file.

@hellomsg
Copy link

Emoji are effectively unlimited in variety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants