How can I vanish out the odd string like � in php?
I already use like html_entity_decode php function but it's still not works.
How can I vanish out the odd string like � in php?
I already use like html_entity_decode php function but it's still not works.
Try to add these line in your db config file.
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_set_charset('utf8',$con);
mysql_select_db("db_name", $con);
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />