title: Unicode for an emoji in a string variable isn't shown as the emoji
body: <p>First of all, sorry for my poor and approximate english...</p>
  <p>I'm trying to do a Python script, who should <strong>retrieve a variable</strong> that will represent the <strong>unicode code corresponding to an emoji</strong> (U000xxxx).
  The final goal of this part of the program is to have translated, from unicode, in the name of the emoji.</p>
  <p>Since I know that in Python to display an emoji it is <code>print(&quot;\U000XXXXX&quot;)</code>
  , so I added the <code>\</code> before the previous name.
  But when I print the final rendering is not the one expected</p>
  <pre><code>unicode = &quot;U0001f0cf&quot;
  unicode = (f&quot;\{unicode}&quot;) #OR# unicode = &quot;\%s&quot; %unicode
  print (unicode) #&gt;&gt;&gt; \U0001f0cf
  #Expected &gt;&gt;&gt; 
  </code></pre>
  <p>I tried a lot of things including <code>.encode()</code> but Python told me I <em>couldn't use a string pattern on an object of type bytes</em> (?)</p>
  <p>This is the part that is causing me problem, all the rest of the process is ok...
  To translate the name of the emoji, from unicode, I found this method (crafted from another Stackoverflow topic)</p>
  <pre class="lang-py prettyprint-override"><code>name = emojis.decode(unicode).replace(&quot;_&quot;,&quot; &quot;).replace(&quot;:&quot;,&quot;&quot;)
  print(name) #&gt;&gt;&gt; \U0001f0cf
  </code></pre>
  <p>Whereas if I directly enter the unicode code it works...</p>
  <pre class="lang-py prettyprint-override"><code>name = emojis.decode(&quot;U0001f0cf&quot;).replace(&quot;_&quot;,&quot; &quot;).replace(&quot;:&quot;,&quot;&quot;)
  print(name) #&gt;&gt;&gt; :black_joker:
  </code></pre>
  <p>Thank you very much to anyone who will try to help me,
  Have a good evening</p>