Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/06/2009, 09:04
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: RemoveBadURLChars que acepte ñ - Ayuda

Yo lo trate y me funciono. Ejemplo

Código PHP:
function RemoveBadURLChars($str) { 
    return 
preg_replace("/[^0-9a-zA-ZñÑ]+/""-"$str);
}  
$v "Otoño, año, ññññññ";
echo 
RemoveBadURLChars($v);