Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/11/2013, 08:11
Avatar de Perr0
Perr0
 
Fecha de Ingreso: mayo-2005
Ubicación: Santiago de Chile, Chile
Mensajes: 676
Antigüedad: 19 años
Puntos: 79
Sonrisa Respuesta: caracteres especiales al escribir en un fichero

con esta función me resulta fácil:
Código PHP:
Ver original
  1. <?
  2. function t($t){
  3.     return htmlentities(utf8_encode($t));
  4. }
  5. echo t("Prueba +a á '1' \"2\" ñ < y >... >=");
  6. ?>

el código HTML queda así:
Código:
Prueba +a &aacute; '1' &quot;2&quot; &ntilde; &lt; y &gt;... &gt;=
salu2
__________________
Numerador Mp3 en Access =)
http://www.mediafire.com/download/r9...pdw/mp3(2).zip