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

Comments field & Emojis #2056

Open
Notanotherdotcom opened this issue Nov 18, 2016 · 2 comments
Open

Comments field & Emojis #2056

Notanotherdotcom opened this issue Nov 18, 2016 · 2 comments

Comments

@Notanotherdotcom
Copy link

When using InnoDB and utf8mb4 in my database so that I can let users post emoji characters into comments, I'm running into a very similar issue described here: #2020

I think it's reasonable to allow folks to use emoji if they're commenting from a phone for example.

@Notanotherdotcom
Copy link
Author

Hmm... perhaps a better solution would be to parse them and store them in the database with shorttags, something like is suggested here: https://github.com/Ranks/emojione with the relevant function here: http://git.emojione.com/demos/latest/phptoshort.php

So the smiley emoji gets translated to :smile: before being stored in the DB, then go back the other way when rendering: http://git.emojione.com/demos/latest/phpshortnametoimage.php#output

@clsource
Copy link

I successfully used InnoDB and utf8mb4 for saving emojis.

Check this project
https://github.com/NinjasCL/voxgram

Also keep in mind that emojis needs mb_ functions in php for string manipulation.
https://github.com/NinjasCL/voxgram/blob/master/templates/helpers/utf8.php

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