I'm creating a messaging system with PHP and MySQL but am having problems when certain characters are entered. Particularly the Pound sign (£).
The form where users write their message is POSTed to a PHP script with the following functions:
$message = htmlspecialchars($message, ENT_QUOTES);
$message = utf8_encode($message);
Then $message is INSERTed into a Database where it is stored in a Text Column.
However, when inputing a Pound sign no data appears in the database at all on my live server, but on my localhost (using MAMP) £ appears in the database.
Anybody know whats going on? And is there a way to encode £ as £, I feel like that might solve my issue.