Search Posts

php string to insret emoji in database

I converted a forum MySQL database to utf8mb4.
Seems to be working fine as Emojis are saving and displaying fine.

But I am having issues with a chatbox.
emojis are saved in the database as Unicode "%uD83D%uDE0B"

Works fine if emojis is inserted by phpmyadmin.

Can this be solved by mb_convert or something ?

php 5.6

Source: Stackoverflow

Leave a Reply

Your email address will not be published. Required fields are marked *