everyone...i have a problem in my dropdown list. He is working fine but when gets the data from Database, some special characters are not recognized. You can see in the pictures:
<?php
include ("conexao.php");
$db = new mysqli('localhost', 'root', '', 'ocorr1');
if (!$db) {
exit('Connect Error (' . mysqli_connect_errno() . ') '
. mysqli_connect_error());
}
?>
<div class="label">Select Name:</div>
<select name="nome_turma">
<option value = "">---Select---</option>
<?php
$queryusers = "SELECT `nome_turma` FROM `turma` ";
$db = mysqli_query($db, $queryusers);
while ( $d=mysqli_fetch_assoc($db)) {
echo "<option value='{".$d['nome_turma']."}'>".$d['nome_turma']."</option>";
}
?>
</select>