Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > asp server.UrlEncode VS asp.net Server.UrlEncode Vs Php urlencode

Reply
Thread Tools

asp server.UrlEncode VS asp.net Server.UrlEncode Vs Php urlencode

 
 
Dario Sala
Guest
Posts: n/a
 
      11-15-2004
Hi,

what's the difference about Asp Server.UrlEncode and the Asp.Net
Server.UrlEncode ?

In asp:
Server.UrlEncode("*") = %2A

In Asp.Net:
Server.UrlEncode("*") = *

In Php
urlencode("*") = %2A

why ?




 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      11-15-2004
Dario
You want to read RFC2396 (http://www.ietf.org/rfc/rfc2396.txt) to understand
what is valid in a URI.

Section 2.3 deals with unreserved characters (which * is a part of) and
says:

" Unreserved characters can be escaped without changing the semantics of the
URI, but this should not be done unless the URI is being used in a context
that does not allow the unescaped character to appear."

which, to me, implies ASP.Net is likely doing it right..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


"Dario Sala" <> wrote in message
news:cnbcf2$p85$...
> Hi,
>
> what's the difference about Asp Server.UrlEncode and the Asp.Net
> Server.UrlEncode ?
>
> In asp:
> Server.UrlEncode("*") = %2A
>
> In Asp.Net:
> Server.UrlEncode("*") = *
>
> In Php
> urlencode("*") = %2A
>
> why ?
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Training Institute In Delhi, Live Projects on PHP. Short TermPHP Courses, PHP Scripts, PHP Training with Live Projects. Rajive Narain Java 0 09-18-2009 10:47 AM
urlencode and asp.net sviau ASP .Net 2 02-10-2004 01:19 AM
URLEncode differs in ASP and ASP.NET Liorm ASP .Net 0 01-30-2004 06:55 PM
Difference between System.Web.HttpUtility.UrlEncode and Server.UrlEncode? Andreas Klemt ASP .Net 4 01-22-2004 01:35 AM
URLEncode Problem from ASP.NET vtreddy ASP .Net 5 10-25-2003 09:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57