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?
It looks to me like they're being stored correctly, but that you're not interpreting them correctly when you read them out.
♥
and☆
are going to end up as multibyte characters in UTF-8 encoding. I'll bet if you look up that multibyte encoding, you'll see it's the same as the single-byte encoding for♥
and☆
respectively.Edit: adding details.
As you can see in the following table, interpreting the UTF-8 characters as if they were encoded as Windows Latin-1 gives the results you're seeing.
Is UTF8 used consistently across the whole spectrum (MySQL, PHP, Apache, <meta>s, headers..)?
For me this worked out of the box:
Debug output: