I've got this problem. From a source that can contains words in italian, english and some other languages. I want it to be saved in a way that I can read it after in a Wordpress site.
The problem is that I can't find a way to encode my string before saved it into the database.
Here's what I do :
$source = stripslashes($source);
$source = utf8_encode($source);
$source= mysqli_real_escape_string($con,$source);
The result on my site is something like that :
Fortune: è Apple la società più ammirata al mondo
and it should be :
Fortune: è Apple la società più ammirata al mondo
How to solve this problem?