$con=mysqli_connect("localhost","m3000248","72wuvaroDO","m3000248_chagua"); mysql_set_charset('utf8'); if (mysqli_connect_errno($con)){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } /* cambiar el conjunto de caracteres a utf8 */ if (!mysqli_set_charset($con, "utf8")) { printf("Error cargando el conjunto de caracteres utf8: %s\n", mysqli_error($con)); } else { printf("", mysqli_character_set_name($con)); } ?>