This question already has an answer here:
Everytime i get some text to display on a page using php echo, all the inverted comma's are replaced by some stupid question mark signs like this: �
Anyone have any idea why this happens?
Encoding: Page- charset=utf-8 Database- MySQL charset: UTF-8 Unicode (utf8)
</div>
Just matched both the encoding of my page and database. They were different. Made them the same and that worked fine
Authough the collation of the database is "utf8-unicode-ci", the connection built by PHP side might use latin1 charset. So you would better check that by
echo $mysqli->character_set_name();
or
echo mysqli_character_set_name ($conn);
To set the charset to utf8, do
mysql_query("SET NAMES 'utf8′", $conn);
or
$mysqli->set_charset("utf8");
Hope it helps.