
24/11/2005, 06:10
|
 | Colaborador | | Fecha de Ingreso: diciembre-2003 Ubicación: Desde una destilería
Mensajes: 2.584
Antigüedad: 21 años, 5 meses Puntos: 144 | |
A ver si esta te gusta más (añade las dos líneas anteriores a esta función)...
Código:
<%
'Caracteres a reemplazar, puestos
'por nuestros usuarios
Function CambiarTexto(texto)
texto=lcase(texto)
texto=replace(texto,"á","á")
texto=replace(texto,"à","à")
texto=replace(texto,"Á","Á")
texto=replace(texto,"À","À")
texto=replace(texto,"é","é")
texto=replace(texto,"è","è")
texto=replace(texto,"É","É")
texto=replace(texto,"È","È")
texto=replace(texto,"í","í")
texto=replace(texto,"ì","ì")
texto=replace(texto,"Í","Í")
texto=replace(texto,"Ì","Ì")
texto=replace(texto,"ó","ó")
texto=replace(texto,"ò","ò")
texto=replace(texto,"Ó","Ó")
texto=replace(texto,"Ò","Ò")
texto=replace(texto,"ú","ú")
texto=replace(texto,"ù","ù")
texto=replace(texto,"Ú","Ú")
texto=replace(texto,"Ù","Ù")
texto=replace(texto,"ñ","ñ")
texto=replace(texto,"Ñ","Ñ")
texto=replace(texto,vbCrLf,"<br>")
texto=replace(texto,Chr(34),""")
texto=replace(texto,"'",""")
texto=replace(texto,"“",""")
texto=replace(texto,"”",""")
texto=replace(texto,"«",""")
texto=replace(texto,"»",""")
texto=replace(texto,"--","")
texto=replace(texto,"select","")
texto=replace(texto,"insert","")
texto=replace(texto,"update","")
texto=replace(texto,"delete","")
texto=replace(texto,"drop","")
texto=replace(texto,"create","")
texto=replace(texto,"join","")
texto=replace(texto,"-shutdown","")
texto=replace(texto,"""""","")
texto=replace(texto," or ","")
texto=replace(texto," and ","")
CambiarTexto=texto
End function
%>
Con el tema de las sustituciones de letras centuadas, yo lo uso, pero solo a la hora de mostrarlos en pantalla. En la BD grabo el texto con acentos (como lo escribió el usuario).
Última edición por 3pies; 24/11/2005 a las 06:16 |