Well, as the question is very self explanatory, I will only reinforce the question.
I have an APP system of conversation, which through HTML , I command for PHP with
Ajax , but if the user tries to insert some emoji in> (emotion) of your device in the database it receives: "????" as a message.
How can I change this so that I receive some type of code for each emotion and the site lists it according to its value?