Foros del Web » Creando para Internet » HTML »

character Encoding mismatch!

Estas en el tema de character Encoding mismatch! en el foro de HTML en Foros del Web. hola tengo problemas con algunos caracteres en la web, por ejemplo, ùltimos comentarios se ve Últimos Comentarios el xhtml validator me arroja este error, no ...
  #1 (permalink)  
Antiguo 07/07/2008, 09:50
p2pdownloading
Invitado
 
Mensajes: n/a
Puntos:
character Encoding mismatch!

hola tengo problemas con algunos caracteres en la web, por ejemplo, ùltimos comentarios se ve Últimos Comentarios
el xhtml validator me arroja este error, no se como solucionarlo, abajo les dejo el errr y el header de la web.

alguien puede ayudarme...?
saludos y gracias!

character Encoding mismatch!

The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.


Código PHP:
<!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" xml:lang="en" lang="en">

        <
head>
                


    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="expires" content="0" />
    <
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />    
        
    <
meta name="description" content="Pligg Content Management System" />

    <
meta name="keywords" content="Pligg Content Management System" />

    <
meta name="Language" content="es-mx" />
    <
meta name="Robots" content="All" />
        


                <
link rel="stylesheet" type="text/css" href="/es/templates/pliggblue/css/style.css" media="screen" />

                
                
                <!--[if 
lte IE 6]>
                        <
link rel="stylesheet" type="text/css" href="/es/templates/pliggblue/css/ie6.css" media="screen" />
                        <
script type="text/javascript">
                                if (
typeof blankImg == 'undefined') var blankImg '/es/templates/pliggblue/images/blank.gif';
                        
</script>
                        <style type="text/css" media="screen">
                                body {behavior:url(/es/templates/pliggblue/css/iehfix.htc); }
                                img {behavior:url(/es/templates/pliggblue/css/iepngfix.htc); }
                        </style>
                <![endif]-->

                
                                <script src="/es/modules/scriptaculous/js/pligg_effects-min.js" type="text/javascript"></script><script src="/es/modules/scriptaculous/js/EditInPlace.js" type="text/javascript"></script><script src="/es/modules/scriptaculous/js/dragdrop.js" type="text/javascript"></script>
                
                                                                        <script src="/es/3rdparty/speller/spellChecker.js" type="text/javascript"></script>

                                        
                <title>PligTorrent / Admin</title>
                <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://pligtorrent.com/es/rss.php"/>
                <link rel="icon" href="/es/favicon.ico" type="image/x-icon"/>
        </head> 
  #2 (permalink)  
Antiguo 07/07/2008, 10:27
 
Fecha de Ingreso: marzo-2008
Mensajes: 306
Antigüedad: 16 años
Puntos: 6
Respuesta: character Encoding mismatch!

Pues la verdad es que el error lo dice claramente: "The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8)."

Prueba a cambiar el META para que coincida con el enviado en el header desde tu servidor:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
__________________
Pop & Rock Bands
Pop Music Stars
  #3 (permalink)  
Antiguo 07/07/2008, 21:27
p2pdownloading
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: character Encoding mismatch!

hola y no puedo cambiar el header del servidor a utf 8 ?
saludos t gracias
  #4 (permalink)  
Antiguo 08/07/2008, 01:10
 
Fecha de Ingreso: marzo-2008
Mensajes: 306
Antigüedad: 16 años
Puntos: 6
Respuesta: character Encoding mismatch!

Haz lo que te resulte más fácil, pero a mi me parece mejor editar los documentos en formato ISO-8859-1. Si lo haces en formato UTF-8 muchos editores te van a mostrar dos caracteres extraños para los caracteres acentuados (como tú mismo decías de que veías Ú en lugar de ú) , las eñes, etc.
__________________
Pop & Rock Bands
Pop Music Stars
  #5 (permalink)  
Antiguo 08/07/2008, 06:21
p2pdownloading
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: character Encoding mismatch!

mmm si a mi me parece mejor, es lo que voy a hacer. no obstante no entiendo que es lo que tendria que cambiar para cambiar el enviado en el header desde el servidor de iso a utf 8?
saludos y gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:00.