title: Emoticons in python string - \xF0\x9F\x92\x96 \xF0
body: <blockquote>
    <p>_mysql_exceptions.Warning: Incorrect string value: '\xF0\x9F\x92\x96 \xF0...' for column 'title' at row 1</p>
  </blockquote>
  
  <p>s = "This is my string. Über! 0\x9F\x92\x96 \xF0"</p>
  
  <p>How can I remove only this value -> <code>0\x9F\x92\x96 \xF0</code> from this string?(or encode this)</p>
  
  <p>EDIT:</p>
  
  <pre><code>&gt;&gt;&gt; s = "So simple  google.com"
  &gt;&gt;&gt; s
  'So simple \xf0\x9f\x98\x81 google.com'
  &gt;&gt;&gt; s.decode('utf-8')
  u'So simple \U0001f601 google.com'
  &gt;&gt;&gt; print s.decode('utf-8')
  So simple  google.com
  &gt;&gt;&gt; 
  </code></pre>