Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/11/2010, 09:59
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Pregunta utf-8 en includes

Tengo un diseñador que me pasa archivos html. Los acentos y eñes se ven bien usando esta cabecera y escribiendolos normalmente:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Para mi es raro, porque siempre escribí los acentos así &aacute;

Y la cuestion es que cuando yo convierto el html en trozos, y utilizo include, dejan de funcionar los acentos. Por que? Intente sumar esta cabecera a los includes pero nada:

Código PHP:
<?php header ('Content-type: text/html; charset=utf-8'); ?>