As always, there are very similar questions on here but none quite applies to my context.
I have text coming from a textarea on a different page. I need to scan it for special characters, and assign it to a new string before inserting it into my SQL database. This was what I thought would work, but it seems to to absolutely nothing (the code still works, but the special characters remain).
$info = htmlspecialchars($_POST['info']);
The text could contain just about anything in the way of special characters (in particular, lots of üèéöàä etc.).