| java.lang.Object | ||
| java.net.URLEncoder | ||
This class is used to encode a string using the format required by
application/x-www-form-urlencoded MIME content type.
| static | String | encode(String s, String enc) | |||
This class contains a utility method for converting a string to the
format required by the application/x-www-form-urlencoded
MIME content type. |
|||||
| static | String | encode(String s) | |||
| This method is deprecated. use encode(String, String) instead | |||||
Methods inherited
from class
java.lang.Object
application/x-www-form-urlencoded
MIME content type.
All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9')
and characters '.', '-', '*', '_' are converted into their hexadecimal
value prepended by '%'.
For example: '#' -> %23
In addition, spaces are substituted by '+'
| s | the string to be converted |
|---|---|
| enc | the name of the charset type to use for encoding. Valid values include "US-ASCII", "ISO-8859-1", "UTF-16BE", "UTF-16LE", "UTF-8", and "UTF-16" |
| UnsupportedEncodingException |
|---|
This method is deprecated. use encode(String, String) instead
This is a utility method for converting a string to the format required by theapplication/x-www-form-urlencoded
MIME content type.
All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') and characters '.', '-', '*', '_' are converted into their hexidecimal value prepended by '%'.
For example: '#' -> %23
In addition, spaces are substituted by '+'
| s | java.lang.String the converted string |
|---|