I have a question regarding accentuation, specifically the return of% with%. My bank has collation Ç
, I'm using HTML tags:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="pt-BR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
And in the bank the latin1_swedish_ci
and accents are correctly registered, as below:
Butatthetimeofdisplayingthedata,itlookslikethis:
PHP displays this way (in the 3rd line I did a test that did not work):
foreach ($saidas as $saida) { ?>
<tr>
<td><?php echo $saida['reserva'] ?></td>
<td><?php echo $saida['motorista'] ?></td>
<td><?php header("Content-Type: text/html; charset=ISO-8859-1", true); echo $saida['setor'] ?></td>
<td><?php echo $saida['email'] ?></td>
<td><?php echo $saida['veiculo'] ?></td>
<td><?php echo $saida['destino'] ?></td>
<td><?php echo $saida['data'] ?></td>
<td><?php echo $saida['saida'] ?></td>
<td><?php echo $saida['retorno'] ?></td>
<td><?php echo $saida['retorno_real'] ?></td>
</tr>
<?
Any suggestions?