_mysql_exceptions.Warning: 不正な文字列値: 行 1 の列 'title' の '\xF0\x9F\x92\x96 \xF0...'
s = "これは私の文字列です。ユーバー! 0\x9F\x92\x96 \xF0"
この文字列から-> この値のみを削除するにはどうすればよい0\x9F\x92\x96 \xF0
ですか?(またはこれをエンコードします)
編集:
>>> s = "So simple google.com"
>>> s
'So simple \xf0\x9f\x98\x81 google.com'
>>> s.decode('utf-8')
u'So simple \U0001f601 google.com'
>>> print s.decode('utf-8')
So simple google.com
>>>