title: Python unicode character conversion for Emoji
body: <p>I'm having some issues with formatting a byte ordered mark to unicode. There is some oddness coming in with how my character is being expressed. Basically it's not printing an emoji character in Python, instead it's just the string. Here's my example.</p>
  
  <pre><code># these codes are coming from a json file; this a representation of one of the codes.
  e = 'U+1F600' # smile grin emoji
  
  # not sure how to clean this, so here's a basic attempt using regex.
  b = re.compile(r'U\+', re.DOTALL).sub('\U000', e)
  
  print unicode(b) # output should be '\U0001F600'
  </code></pre>
  
  <p>For whatever reason this doesn't print an emoji character.</p>
  
  <p>However if you type out the same string as a literal, using the <code>u</code> flag everything works as expected.</p>
  
  <pre><code>print u'\U0001F600'
  </code></pre>
  
  <p>What am I doing wrong here? I thought that the <code>unicode</code> function would convert my string to the working equivalent, but it apparently is not. </p>
  
  <p>I'm using Python 2.7 </p>