Ciao a tutti. Vi sottopongo un problema che spero sappiate aiutarmi a risolvere:
Aggiungendo una news al db per risolvere il problema degli apici usavo un fixquotes che funzionava perfettamente
Successivamente è nata la necessità di sistema il problema delle vocali accentate. Adesso la situazione di codice è la seguente:
Il problema è che risolvo il problema degli accenti ma non quello dell'apice...codice:% @Language=VBScript %> <% Session.LCID = 1040 %> <% Response.Buffer=TRUE%> <% FUNCTION fixQuotes (theString) fixQuotes = Replace (theString, "'", "''") END FUNCTION FUNCTION fixQuotes1 (theString) fixQuotes1 = Replace (theString, "à", "a''") END FUNCTION FUNCTION fixQuotes2 (theString) fixQuotes2 = Replace (theString, "è", "e''") END FUNCTION FUNCTION fixQuotes3 (theString) fixQuotes3 = Replace (theString, "ì", "i''") END FUNCTION FUNCTION fixQuotes4 (theString) fixQuotes4 = Replace (theString, "ù", "u''") END FUNCTION FUNCTION fixQuotes5 (theString) fixQuotes5 = Replace (theString, "ò", "o''") END FUNCTION %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Amministra: action --> aggiungi notizia</title> </head> <body> <% dim strdata titolo = fixQuotes(Request.form("titolo")) titolo = fixQuotes1(Request.form("titolo")) titolo = fixQuotes2(Request.form("titolo")) titolo = fixQuotes3(Request.form("titolo")) titolo = fixQuotes4(Request.form("titolo")) titolo = fixQuotes5(Request.form("titolo"))
Qualche suggerimento?
Grazie in anticipo
JK


Rispondi quotando
