I want to store emojis (android or iphone) in my mysql database, I tried many tutorials and SO posts, on the internet like :
How to insert utf-8 mb4 character(emoji in ios5) in mysql?
http://andy-carter.com/blog/saving-emoticons-unicode-from-twitter-to-a-mysql-database
MySQL utf8mb4, Errors when saving Emojis
I changed all things those tuts require. I have now the following mysql configuration :
character_set_client : utf8mb4
character_set_connection : utf8mb4
character_set_database : utf8mb4
character_set_filesystem : binary
character_set_results : utf8mb4
character_set_server : latin1
character_set_system :utf8
collation_connection : utf8mb4_unicode_ci
collation_database : utf8mb4_unicode_ci
collation_server : latin1_swedish_ci
But I can't still store 4 bits emojis on my mysql database, I have "????", which is pretty annoying.
Please help.
utf8correctly. Connection between PHP and MySQL must be set toutf8. You can find more info by googling about these topics, it's much better than me posting links here (there's also so many answers here at SO). - Mjh