Foro de elhacker.net

Programación => Desarrollo Web => Mensaje iniciado por: Hadess_inf en 7 Julio 2010, 16:22 pm



Título: Duda sobre meta http-equiv="Content-Type" content="text/html; charset=utf-8"
Publicado por: Hadess_inf en 7 Julio 2010, 16:22 pm
Pues tengo una pagina con lo siguiente cabecera:

<!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=utf-8" />
<title>Prueba</title>
</head>
<body marginheight="0" marginwidth="0" >
....

En la cual muestro datos de una tabla que tiene el cotejamiento utf8_spanish2_ci, cuando se tiene que mostrar una ñ o un acento aparece de la siguiente forma: � ... se que se tiene que cambiar el content="text/html; charset=utf-8" pero el gran problema es que no se a cual xD .... haber si alquien que sepa del tema me tira un dedo .. =P .

Gracias y saludos.


Título: Re: Duda sobre meta http-equiv="Content-Type" content="text/html; charset=utf-8"
Publicado por: Nakp en 8 Julio 2010, 00:40 am
haz un select y mira como se guardo... no sea que tengas un iso-XXXX-X guardado en una tabla utf8


Título: Re: Duda sobre meta http-equiv="Content-Type" content="text/html; charset=utf-8"
Publicado por: Hadess_inf en 8 Julio 2010, 02:13 am
Se han guardado justo como debe ser ser osea:

ñ y/o Ñ


Título: Re: Duda sobre meta http-equiv="Content-Type" content="text/html; charset=utf-8"
Publicado por: Morris en 22 Julio 2010, 06:44 am
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">