Good morning. I'm passing the contents of an excel to a table, by showing me the table data the special characters appear with a . The excel is in xls format. PHP code
require_once ("Excel/reader.php");
$datos = new Spreadsheet_Excel_Reader();
$datos->read($_POST['archivo']);
$celdas = $datos->sheets[0]['cells'];
$i = 1;
echo "<table width='300' align='center' border=1>";
while($celdas[$i][1]!='')
{
echo "<tr><td width='150' align='center'>".$celdas[$i][1]."</td>
<td width='150' align='center'>".$celdas[$i][2]."</td>
<td width='150' align='center'>".$celdas[$i][3]."</td>
<td width='150' align='center'>".$celdas[$i][4]."</td>
<td width='150' align='center'>".$celdas[$i][5]."</td>
<td width='150' align='center'>".$celdas[$i][6]."</td>
<td width='150' align='center'>".$celdas[$i][7]."</td>
<td width='150' align='center'>".$celdas[$i][8]."</td></tr> ";
$i++;
}
echo "</table>";
In the headers I used <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
. I have also used the function mb_internal_encoding("UTF-8");