i have this php file that connect to my MySQL BD , the BD callation is latin1_swedish_ci
this is my php code:
<?php
$con = mysql_connect("localhost","root","");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db("ttbfb", $con);
$result = mysql_query("SELECT * FROM news");
while($row = mysql_fetch_array($result)) {
echo $row['name'];
}
mysql_close($con);
?>
how can i convert the $row['name'] string into utf8 before i get the echo ?