No code here yet, working on cleaning it up!
This project brings emoji support for websites and mobile web application.
The general idea is to let server-side code deal with all things unicode. The clients just pass over the emojis, while the server replaces all ๐บ with ๐บ. This makes it easier to store text in databases (no need to deal with utf8-mb4), and UTF-16 in JS for example.
The clients are responsible for replacing ๐บ with something that looks like a beer. In this case it's a .
The PHP class supports conversion from emoji to ๐บ, and from ๐บ to HTML.
$e = new Emojificator('data/'); $e->emoji2text("Are you up for a ๐บ?"); // Are you up for a ๐บ? $e->text2html("Are you up for a ๐บ?"); // Are you up for a
Emoji.text2Html("Are you up for a ๐บ?"); // Are you up for a
http://crocodillon.com/blog/parsing-emoji-unicode-in-javascript http://stackoverflow.com/questions/7814293/how-to-insert-utf-8-mb4-characteremoji-in-ios5-in-mysql