in my mysql I have values with this special character: ½
When I try to fill a combo box with values from that column, I have "�" instead of "½".
This is my code:
 <meta charset="UTF-8">
<select name="loads" size=1>
<?php
$host = "xxxxxxxxx";
$username = "xxxxxxx";
$password = "xxxxx";
$database = "xxxxx";
$connection = mysqli_connect($host, $username, $password, $database); 
 
  if (mysqli_connect_errno()) { 
      echo "Database connection failed."; 
  }
    $query = "SELECT DISTINCT dist FROM mytable ORDER BY dist ASC ";
    $result = mysqli_query($connection, $query);
    while ($row = mysqli_fetch_assoc($result)) {
        echo "<option value=" . $row['dist'] . ">" . $row['dist'] . "</option>";
    }
    echo "</select> "
?>
How can I fix it, please?
Thank you
EDIT I deleted my table and created again using ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
I put this:
<head>
  <meta charset="UTF-8">
</head>
But I still have the same problem. Any advice?
