[jQuery-es] JQuery Form Plugin: ISO-8859-1

Sithram PG sithram en gmail.com
Lun Mayo 14 01:27:59 PDT 2007


Gracias por tu respuesta, David.

Utilizo la siguiente función:

Function URLDecode(encodedstring)
Dim strIn, strOut, intPos, strLeft
Dim strRight, intLoop

strIn = encodedstring
strOut = ""
intPos = Instr(strIn, "+")
Do While intPos
  strLeft = ""
  strRight = ""
  If intPos > 1 then strLeft = Left(strIn, intPos - 1)
  If intPos < len(strIn) then strRight = Mid(strIn, intPos + 1)
  strIn = strLeft & " " & strRight
  intPos = InStr(strIn, "+")
  intLoop = intLoop + 1
Loop
intPos = InStr(strIn, "%")
Do while intPos
  If intPos > 1 then strOut = strOut & Left(strIn, intPos - 1)
  strOut = strOut & Chr(CInt("&H" & mid(strIn, intPos + 1, 2)))
  If intPos > (len(strIn) - 3) then
    strIn = ""
  Else
    strIn = Mid(strIn, intPos + 3)
  End If
  intPos = InStr(strIn, "%")
Loop
URLDecode = strOut & strIn
End Function

Aunque he probado también otras, como:

<script language=JavaScript RUNAT=SERVER>
// This function decodes the any string
// that's been encoded using URL encoding technique
function URLDecode_js(psEncodeString)
{
  return unescape(psEncodeString);
}
</script>



Un saludo,


El día 14/05/07, David Arango <arango en gmail.com> escribió:
>
> On 5/14/07, Sithram PG <sithram en gmail.com> wrote:
> > Un detalle que he comprobado es que antes de enviar el texto ya hay
> cambios
> > en la codificación mediante el comando encodeURIcomponent de la función
> > param de JQuery. Si en el beforeSubmit de las opciones de ajaxForm le
> indico
> > que me descodifique con decodeURI la información que va a enviar,
> entonces
> > queda tal y como la he introducido.
>
> No se si puede haber algún error en ajaxForm, pero ¿has probado a
> hacer decodeurl para cada campo en el script ASP?
>
> Un saludo
>
> --
> David Arango, el único desarrollador con una orden de alejamiento de
> Jeffrey Zeldman
> Simplelogica.net , ahora con un 33,3% más de intromisión en listas de
> correo
>
> Cuando no hago otra cosa escribo en mildiez.net
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://lists.scriptia.net/pipermail/jquery-es-scriptia.net/attachments/20070514/6f649561/attachment.html 


Más información sobre la lista de distribución jquery-es