Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/02/2010, 18:21
luks77
 
Fecha de Ingreso: diciembre-2007
Mensajes: 274
Antigüedad: 16 años, 4 meses
Puntos: 0
Respuesta: Dudas con acentuacion y signos

Cita:
Iniciado por jomaruro Ver Mensaje
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.


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
  1. <form action="crear.php" method="post" name="crearNot" id="crearNot" >
  2. <input name="titNot" type="text" id="titNot" size="50" maxlength="150"  />
  3. <input name="funcion" type="text" disabled="disabled" id="funcion" value="crear noticia" size="50" maxlength="150" readonly="readonly"  />
  4. <input name="idNot" type="text" id="idNot" size="50" maxlength="150" readonly="readonly" />
  5. <input name="autorNot" type="text" id="autorNot" size="50" maxlength="150" readonly="readonly" />
  6. <input name="ipNot" type="text" id="ipNot" value="<? echo $ip;?>" size="50" maxlength="150" readonly="readonly" />
  7. <input name="dateNot" type="text" id="dateNot" value="<? echo date(Y."/".m."/".d." ".H.":".i.":".s);?>" size="50" maxlength="150" readonly="readonly" />
  8. <input e="encuestaNot" type="checkbox" id="encuestaNot" />
  9. <select id="urlImgNot" name="urlImgNot" onchange="imgMuestra(this)">
  10.          <option selected="selected" value="ninguna">Ninguna</option>  
  11.       <?
  12.      for($x=0;$x<count($img);$x++){
  13.     echo '<option value="'.$img[$x].'">'.$img[$x].'</option>';
  14.     }
  15.       ?>
  16.       </select>
  17. <input name="anchoImgNot" type="text" onkeypress="return validarNum(event)" id="anchoImgNot" maxlength="3" />
  18. <input name="altoImgNot" type="text" id="altoImgNot" onkeypress="return validarNum(event)" maxlength="3" />
  19. <input type="button" value="Previsualizar imagen" id="preImg" name="preImg">
  20. <input name="noticiarioNot" type="checkbox" id="noticiarioNot"  onchange="act(this,'subNoticiario','subNoticiario2')" />
  21. <input name="noticiarioTitNot" type="text" id="noticiarioTitNot" size="50" maxlength="250" />
  22. <input name="comentariosNot" type="checkbox" id="comentariosNot" />
  23. <input name="leerNot" type="checkbox" id="leerNot"  onchange="act(this,'porcentaje','porcentaje2')"/>
  24. <input name="porcentajeLeerNot" type="text" id="porcentajeLeerNot" size="35" maxlength="2"  onkeypress="return validarNum(event)" />
  25.         <textarea name="contenidoNot" cols="75" rows="20" id="contenidoNot"></textarea>
  26. <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