Good evening. I just can not write to the database of messages / comments from VK, which contain smiles. I write through python + mysqldb + peewee. Changed MySQL encoding to utf8mb4
SET NAMES utf8mb4; SET CHARACTER SET utf8mb4; SET character_set_connection=utf8mb4; ALTER DATABASE first_db CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; ALTER TABLE first_db.vkpost CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ALTER TABLE first_db.vkcomment CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ALTER TABLE first_db.vkpost CHANGE content content longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL; ALTER TABLE first_db.vkcomment CHANGE content content longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL; However, whatever I did, the output is always the same. (1366, u"Incorrect string value: '\\xF0\\x9F\\x98\\x8A \\xD0...' for column 'content' at row 1")
If you enter the data manually, then MySQL Workbench gives the same error. 
How can you beat it or even cut emoticons from the text? Cut smiles, probably, even better, so as not to store too much.
db = MySQLDatabase('first_db', host='0.0.0.0', port=3306, user='user', password='1233', charset='utf8mb4'):) - Skotinin