Ver Mensaje Individual
  #8 (permalink)  
Antiguo 20/07/2010, 15:34
Avatar de Cero_Cool
Cero_Cool
 
Fecha de Ingreso: abril-2007
Ubicación: Chile
Mensajes: 113
Antigüedad: 17 años
Puntos: 6
Respuesta: Es correcto SET NAMES utf8 ?

Si resuelve tu problema entonses si es correcto segun mi forma de ver las cosas, pero, se te escapo una cosilla solamente.
No es nesesario poner esa linea en todas partes, solo usala en tu scrip de conexion a la bd

<?php
function conectar ()
{
global $conn;
$conn = mysql_connect("xxxx", "xxxx", "xxxx")
or die (mysql_error());
mysql_select_db("xxxxx",$conn)
or die (mysql_error());
mysql_query ("SET NAMES 'utf8'");
}
?>

NO ESTOI SEGURO DE LO QUE VOY A DESIR A CONTINUACION, PERO CREO QUE NO SOLO BASTA CON SETIAR EL COTEJAMIENTO DE LAS TABLAS, DE LAS PAGINAS, DE LA BD, SINO QE ADEMAS DEBES AHCERLO EN LA CONEXION. LA CONEXION EN SI TIENE SU PROPIO COTEJAMIENTO.