| 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.
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 '+'.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method was deprecated
in API level 1.
Use
encode(String, String) instead.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Encodes s using the Charset named by charsetName.
| UnsupportedEncodingException |
|---|
This method was deprecated
in API level 1.
Use encode(String, String) instead.
Equivalent to encode(s, "UTF-8").