i am getting some data from facebook by using requests.This is the sample data.
response = {'message': 'I have recommended your name to all my family n friend
s. Thankyou!!!!\\ud83d\\ude0a\\ud83d\\ude0a\\ud83e\\udd17\\ud83e\\udd17\\ud83d\\udc4c\\ud83d\\udc4c\\ud83d\\udc4d\\ud83d\\udc4
}
The last few characters are emojis. but when i need to save it in database.
so i try to convert it into a dictionay first so that i can add keys & manipulate data:
response = json.loads(response.content, encoding='utf-8')
but when i do print(response) i get something like
{
'message': 'I have recommended your name to all my family n friend
s. Thankyou!!!!__ __ __ __ __ __ __
}
and from db i get this error:
Incorrect string value: '\xF0\x9F\x98\x8A\xF0\x9F...'
what is the encoding i got ? how do i transform it so that i can store it in databse(mysql)