Ah, I understand.

I believe that the actual issue is that the Server.URLEncode method is
flawed, not the client-side javascript decoders.
 
unescape, decodeURI and decodeURIComponent are all javascript standard
methods and don't need to be implemented by any javascript libraries.

If you are using classic ASP, there is a VBScript function "Escape"

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht
ml/4200f159-3e9e-4b39-8b02-0048917f29f5.asp

Which will match the unescape method in javascript.

As well, you could use Jscript instead of VBScript in your server side code
and call the encodeUri method directly.

<%@ language = JScript %>
<%
        var encoded = encodeURI(paramString);
%>

JK

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of SamCKayak
Sent: Tuesday, May 22, 2007 5:05 AM
To: jQuery (English)
Subject: [jQuery] Re: Ajax: ASP returns JSON to client


Thanks everyone.  I'll reply to several questions all at once here.

 - It's ASP, not .NET.  ( I know, I know.)

I tried the JavaScript decodeURI and found it doesn't decode the ASP
Server.URLEncode() well.

I know that jQuery wants to stay small, but it seems like adding php,
asp, .net decoders would be a good core addition.

Sam


Reply via email to