How can I convert an Emoji in a string to an equivalent utf-8 code ?
eg: "Hi this is Chinmay ! ☺ "
Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Aman GuptaRank #193 · 12.4K reputationPosted Jul 14, 2020, 5:53 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jul 14, 2020, 6:21 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 15, 2020, 3:27 AM EDT
Chandresh PansuriyaRank #1,042 · 1.8K reputationPosted Jul 15, 2020, 5:38 AM EDT