Use java.net.URLEncoder.encode(String str). Be careful with java applets in
MSIE since this method translates nonprintable (accented)
characters in CP 1251. They are translated to "?".

In general:
blank is translated to "+"
a-z A-Z 0-9 remain same
other characters are translated to %hh where hh is 0-255 hex value of
the character

Dragomir

----------
From:   Vitaly Lipovetsky[SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, November 18, 1999 04:58 PM
To:     [EMAIL PROTECTED]
Subject:        Encoding parameter values in query string ?

<<File: ATT00000.txt>><<File: ATT00001.html>>

___________________________________________________________________________
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

Reply via email to