I am trying to insert a ♥ into a MySQL table with PHP. It comes from an input field.
The table's charset is utf8_general_ci, and in PHP I use mysql_query("SET NAMES 'utf8'");
right after connection is made.
But the ♥ just becomes a '?' when inserted.
I have also tried inserting ♥ into the table from phpMyAdmin, but it returns this error:
Warning: #1366 Incorrect string value: '\xE2\x99\xA5' for column 'subject' at row 1
The result is also '?' instead of ♥.
Any ideas on what causes this?