How to store characters like ♥☆ to DB?
问题 Previous issue - was not able to store non-english characters: How to store non-english characters? That was fixed by using UTF8. But realized today that symbols like ♥☆ are not stored correctly. They get converted to characters like ♥☆ . How can this be fixed? 回答1: Is UTF8 used consistently across the whole spectrum (MySQL, PHP, Apache, <meta>s, headers..)? For me this worked out of the box: $query = "update tbl set col = '♥☆' where id = 1"; mysql_query($query) or die(mysql_error());