Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2011, 16:52
hicolu
 
Fecha de Ingreso: agosto-2009
Ubicación: Lima
Mensajes: 226
Antigüedad: 14 años, 8 meses
Puntos: 3
CARACTERES RAROS EN impresion

holas compañeros
toy harto de que no me salgan los caracteres acentuados
haber lo primero q quiero decirles que la BD es msqlserver 2008, y la data grabada los acentos aparecen como caracteres raros.

lo que quiero es que esos caracteres raros se conviertan en las vocales acentuadas al momento de imprimir como lo hago
adjunto codigo

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 />
header("Content-Type: text/plain; charset:UTF-8");
-->
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />

<title>REPORTE OBJETIVO OPERACIONAL</title>
</head>
<style>

body{
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
}
.contenido {
font-size:12px;
}


</style>
<body>
<div align="center">
<!-- <h1>Plan Operativo Institucional <?=$anio?></h1>
-->
<h2>Misi&oacute;n de la Dependencia </h2></div>
<p ><strong> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
ORGANO / DEPENDENCIA:</strong><?=utf8_encode($oficina)?> </p>
<br />
<table width="498" align="center" border="1" bordercolor="#000000" cellspacing="0">
<tr>
<th width="30" bgcolor="#66CCFF">Nro.</th>
<th align="center" bgcolor="#66CCFF">Descripci&oacute;n</th>
</tr>
<?php
$cont = 0;
foreach($operacional as $row){
++$cont;
?>
<tr class="contenido">
<td align="center"><?=$cont?></td>
<td><?=($row->descripcion)?></td>
</tr>
<?php } ?>

</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="0" width="800" align="center">
<tr>
<td height="47" class="contenido">________________________________ _____<br />V°B°</td>
<td class="contenido" >_____________________________________<br />V°B°</td>
</tr>
<tr>
<td height="47" class="contenido">Elaborado por:.............................................. ...................</td>
<td class="contenido"> Responsable:...................................... ............................</td>
</tr>
<tr class="contenido">
<td height="22">Dependencia:.......................... .........................................</td>
<td>Dependencia:.................................. ...............................</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>

gacias mill!!!!!!!!