Cita:
Iniciado por jomaruro
Hola:
Esto indica que la codificación de la BD está en utf-8, y la página en iso-8859-1, debes
GRABAR todo con la misma codificación.
Saludos.
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)
Disculpen por ahi no me explique bien, porque lo escribi muy apurado. En el ejemplo no recupero valor de la BD. Te das cuenta porque uso $_GET[]; Recupero valores del form
Cita: y el contenido de donde viene?? tiene que tener el mismo charset (ya sea de una BD, un formulario u otro documento).
Saludos
Este es el form, no pongo ninguna etiqueta q no sea <input> o <form>
Código HTML:
Ver original<form action="crear.php" method="post" name="crearNot" id="crearNot" > <input name="titNot" type="text" id="titNot" size="50" maxlength="150" /> <input name="funcion" type="text" disabled="disabled" id="funcion" value="crear noticia" size="50" maxlength="150" readonly="readonly" /> <input name="idNot" type="text" id="idNot" size="50" maxlength="150" readonly="readonly" /> <input name="autorNot" type="text" id="autorNot" size="50" maxlength="150" readonly="readonly" /> <input name="ipNot" type="text" id="ipNot" value="<? echo $ip;?>" size="50" maxlength="150" readonly="readonly" />
<input name="dateNot" type="text" id="dateNot" value="<? echo date(Y."/".m."/".d." ".H.":".i.":".s);?>" size="50" maxlength="150" readonly="readonly" />
<input e="encuestaNot" type="checkbox" id="encuestaNot" /> <select id="urlImgNot" name="urlImgNot" onchange="imgMuestra(this)"> <option selected="selected" value="ninguna">Ninguna
</option> <?
for($x=0;$x<count($img);$x++){
echo '<option value="'.$img[$x].'">'.$img[$x].'
</option>';
}
?>
<input name="anchoImgNot" type="text" onkeypress="return validarNum(event)" id="anchoImgNot" maxlength="3" /> <input name="altoImgNot" type="text" id="altoImgNot" onkeypress="return validarNum(event)" maxlength="3" /> <input type="button" value="Previsualizar imagen" id="preImg" name="preImg"> <input name="noticiarioNot" type="checkbox" id="noticiarioNot" onchange="act(this,'subNoticiario','subNoticiario2')" /> <input name="noticiarioTitNot" type="text" id="noticiarioTitNot" size="50" maxlength="250" /> <input name="comentariosNot" type="checkbox" id="comentariosNot" /> <input name="leerNot" type="checkbox" id="leerNot" onchange="act(this,'porcentaje','porcentaje2')"/> <input name="porcentajeLeerNot" type="text" id="porcentajeLeerNot" size="35" maxlength="2" onkeypress="return validarNum(event)" /> <input name="crearNot" type="submit" id="crearNot" onclick="return comprobar()" value="Crear noticia" /><input name="preNot" type="button" id="preNot" value="Previsualizar noticia" />
Como q tiene que venir del mismo charset?? Eso lo pongo en el form o en la cabeze?? Disculpen mi ignorancia