Friday, September 10, 2010

Re: Difference between URL.decode and URL.decodeComponent

decode and encode component is intended to be used in parts of the
query. Take the following url for example:

http://www.google.com/search?q=fox%26hound
|___________| <
component

The bigggest difference between encode and encodeComponent is what
special chars it will encode. Notice above %26, which is an
ampersand. This will only be encoded with encodeComponent, not
encode.

On Sep 10, 10:00 am, Kady <kaushika...@gmail.com> wrote:
> What is the difference between URL.decode and URL.decodeComponent
> methods ? Any example is appreciated.
>
> Thank you.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment