Good day, I have been given a large dump of emails (that were originally sms messages) and charged with making them display nicely in HTML. I am using MIME::Parser to parse out the messages, which is working well, except that there are "emojis" that are in the raw email messages that are quoted printable. I need to be able to decode these emojis and map them to images that will display in a browser. I have a list of emojis and their images in unicode form i.e. U+1F601 but I am have trouble recognizing the quoted-printable code in to this unicode format. For example in the raw email message I have this smily face in quoted printable:
=F0=9F=98
I need this to translate in to U+1F601 so I can map to the correct image to display. Right now MIME::Parser is converting in to unrecognizable characters. I am admittedly a novice in terms of character sets and translations. Any advice you can give would be appreciated.

In reply to Quoted Printable to Unicode or something by rethaew

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.