I want to be able to store every character possible (Chinese, Arabic, these kind of characters: ☺♀☻
) in a MySQL database and also be able to use them in PHP and HTML. how do I do this?
Edit: when I use the function htmlspecialchars()
with those characters: ☺♀☻
like this: htmlspecialchars('☺♀☻', ENT_SUBSTITUTE, 'UTF-8');
it returns some seemingly random characters. how do I solve this?