To decode use:
java.net.URLDecoder (java 1.2)
--- Milt Epstein <[EMAIL PROTECTED]> wrote:
> On Thu, 27 Jan 2000, Constantin Nickonov wrote:
>
> > Does someone have a Java method handy to encode a
> String to mimic a GET
> > form method, i.e., convert something like:
> >
> > name=Steve Smith
> >
> > to
> >
> > name=Steve+Smith
> >
> > I am writing a servlet, which must generate a URL
> outside a form (which
> > does this automatically). Spaces and special
> characters are changed to
> > comply with URL specs.
>
> java.net.URLEncoder.encode().
>
> (There isn't really an inverse to this -- don't know
> why they don't
> just have a decode() method in the same class.)
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html