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 |
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 |
---|
UnsupportedEncodingException |
---|
This method is deprecated. use encode(String, String) instead
This class contains 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 |
---|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |