URLEncoder.Encode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Encode(String) |
Obsolete.
Translates a string into |
| Encode(String, String) |
Translates a string into |
Encode(String)
Caution
deprecated
Translates a string into x-www-form-urlencoded
format.
[Android.Runtime.Register("encode", "(Ljava/lang/String;)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? Encode (string? s);
[<Android.Runtime.Register("encode", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member Encode : string -> string
Parameters
- s
- String
String to be translated.
Returns
the translated String.
- Attributes
Remarks
Java documentation for java.net.URLEncoder.encode(java.lang.String).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Encode(String, String)
Translates a string into application/x-www-form-urlencoded
format using a specific encoding scheme.
[Android.Runtime.Register("encode", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? Encode (string? s, string? enc);
[<Android.Runtime.Register("encode", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member Encode : string * string -> string
Parameters
- s
- String
String to be translated.
- enc
- String
The name of a supported <a href="../lang/package-summary.html#charenc">character encoding</a>.
Returns
the translated String.
- Attributes
Exceptions
Remarks
Java documentation for java.net.URLEncoder.encode(java.lang.String, java.lang.String).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.