I am fetching tweets from Twitter and storing them in a database for future use. I am using UTF-8 encoding in my driver, utf8_mb4_bin in my VARCHAR fields and utf8mb4_general_ciserver collation. The problem with that is that when inserting a value in a VARCHAR field, if the text has any binary code then it will throw an exception since VARCHAR utf8 does not accept binary.
Here is an example, I am fetching the text from here and try inserting it in my database and I get the error:
Incorrect string value: '\xF0\x9F\x98\xB1\xF0\x9F...' for column 'fullTweet' at row 1
My guess is that the two emoticons are causing this. How do I get rid of them before inserting the tweet text in my database?
Update:
Looks like I can manually enter the emoticons. I run this query:
INSERT INTO `tweets`(`id`, `createdAt`, `screenName`, `fullTweet`, `editedTweet`) VALUES (450,"1994-12-19","john",_utf8mb4 x'F09F98B1',_utf8mb4 x'F09F98B1')
and this is what the row in the table looks like:

utf8mb4support?character-set-server=utf8mb4in server settings,characterEncoding=UTF-8in connection URL and correct collation for the field??useUnicode=true&characterEncoding=UTF-8. The "Server Connection Collation" isutf8mb4_general_ciand the field collation isutf8mb4_bin(I double checked them a million times).character-set-server?Server charset: UTF-8 Unicode (utf8)(I guess this is the one you are talking about).show variables like 'character_set_server'show?