I have a select in which it is populated through a query in the database:
<select class="form-control" name="select_cidades">
<option>Selecione a Cidade</option>
<?php
$result_cidades = "SELECT * FROM cidades";
$resultado = mysqli_query($conn, $result_cidades);
while($row_cidades = mysqli_fetch_assoc($resultado)){
?>
<option value="<?php echo $row_cidades['id']; ?>"> <?php echo $row_cidades['nome']; ?>
</option>
<?php
}
?>
</select>
The problem is that cities that have accents are appearing symbol of? I could not find any function that wipes accents on an array. Anyone have any?