Iam trying to read a data from mysql database. In my db i checked the data is showing as 'μ' and charset is properly set to 'UTF-8'. But when in PHP when i ran this below code, the output 'μ' is showing as '?'. I tried so many ways by adding different types of charsets and all in the scripts, but all in vain, still its showing as '?'. Can anyone pls help me with it.
My script is below:
<?php
ini_set("default_charset", "UTF-8");
header('Content-type: text/html; charset=UTF-8');
error_reporting(E_ALL);
ini_set("display_errors", 1);
$tender_id=$_GET['tender_id'];
include('config_sqli.php');
?>
<?php
$result=mysqli_query($con,"SELECT * FROM comparitive_st_sup WHERE
id='$member[$x]' and tender_id='$tender_id'");
while($row=mysqli_fetch_assoc($result)){
$prod_description1 = $row['prod_description'];
$prod_description = mysqli_real_escape_string($con, $prod_description1);
}
echo $prod_description;
echo '<br>';
?>