0

I am extracting a tweet from twitter which has an emoticon in it using python and storing it in csv file. The emoticon is represented in "\ud83d\ude01" form. I want to convert it into Unicode format (U+1F603), how to convert it??

Thanks for your help in advance.

  • The emoticon is "grinning face with big eyes" – HARSH GUPTA Mar 26 '18 at 19:40
  • U+1F603 is not UTF-8. It's the Unicode code point. The UTF-8 representation of it is `F0 9F 98 83`. – deceze Mar 26 '18 at 19:47
  • 1
    You want to store the string "U+1F603" in your CSV? Why? That probably doesn't do you any good. – deceze Mar 26 '18 at 19:49
  • I've stored the tweet, I want to extract emoticon from tweet and classify it by comparing it with unicode and display the description – HARSH GUPTA Mar 26 '18 at 19:52
  • This sounds like an [XY problem](http://xyproblem.info/). I'm sure you'll find help here, but you need to describe what you ultimately want to do, and where you are stuck specifically. – lenz Mar 27 '18 at 09:16
  • The "U+1F603" format is for discussion purposes, not storage, processing or presentation purposes. – Tom Blodget Mar 27 '18 at 16:51

0 Answers0