I am able to save into my database field correctly but if I apply html_entity_decode() function to the string, I get: PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xF0\x9F\x93\xB8 b...' for column 'description' at row 1... How can I solve this? I am using html_entity_decode to convert '
', '—
', '’
' and whatnot to actual character.
I am using MySQL with utf8mb4 encoding.
How can I solve this?