0

_mysql_exceptions.Warning: Incorrect string value: '\xF0\x9F\x92\x96 \xF0...' for column 'title' at row 1

s = "This is my string. Über! 0\x9F\x92\x96 \xF0"

How can I remove only this value -> 0\x9F\x92\x96 \xF0 from this string?(or encode this)

EDIT:

>>> 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
>>> 
smci
  • 32,567
  • 20
  • 113
  • 146
pawss
  • 23
  • 8

0 Answers0