I am pulling through the field item_name from a database. It should read : “Reminisce Basic £11.99 + Card £4.99 + Free”
But when its coming through the £ signs are coming out as � is there a method to decode this to at least make it look like a £ sign?
My code is as follows :
<?php
$con = mysql_connect("localhost","","");
mysql_select_db("", $con);
$result = mysql_query("SELECT custom, item_name from paypalsub WHERE custom = '$_SESSION[uid]'");
while($row = mysql_fetch_array($result))
{
$sub_type = $row['item_name'];
}
?>
<h2>You are currently subscribed to : <?php echo ($sub_type); ?></h2>
The H2 is outputting it like this :
You are currently subscribed to : Reminisce Basic �11.99 + Card �4.99 + Free
Any help.. Much appreciated.
1.) Are you sending the output in UTF-8?
2.) Have you also set the MySQL connection to UTF-8?