Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/01/2011, 14:43
crash1912
 
Fecha de Ingreso: noviembre-2010
Ubicación: Badajoz
Mensajes: 94
Antigüedad: 13 años, 6 meses
Puntos: 4
Respuesta: Problema con Include y UTF-8

A ver, tengo lo siguiente:
INDEX.PHP:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
    <head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
       <title><?php echo $titulo;?></title>
       <link href="<?php echo $img."favicon.ico";?>" type="image/x-icon" rel="shortcut icon" />
    </head>   
<body>

include('archivo2.php');

</body>
</html>

ARCHIVO2.PHP
Código PHP:

&#241;ñÑÑÑ
&#233;íóú
etc etc

y algunos datos mas sacados de mysql
con exactamente el mismo problema 
si cargo archivo2.php se ve bien, si cargo index.php, el contrenido de archivo2.php mediante el include, se ven rombos con interrogaciones y caracteres raros...

����� ��������� ��������� ��������� ����


qué hago mal? :(

Última edición por crash1912; 06/01/2011 a las 14:57