Thank you for all the help so far.
This forum is the best

So now, I have a emoji problem.
I have taken out some data from an sql db and stored them on a dg.
However this data contains some emoticons, which when viewed in the dg, it looks
like as displayed in the attached picture.
I have been some codes in python that goes like this:
newtext = newtext.replace(u'\U0001F0CF', '<img src="data/emoji_new/1F0CF.png" alt=""/>')
It says to replace a certain code with the other, the problem is how do i get the initial eg. "U0001F0CF" code from the characters??
Thank you in advance for any help rendered!
Gautami