Uri.Decode(String) Method

Definition

Decodes '%'-escaped octets in the given string using the UTF-8 scheme.

[Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? Decode (string? s);
[<Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
static member Decode : string -> string

Parameters

s
String

encoded string to decode

Returns

the given string with escaped octets decoded, or null if s is null

Attributes

Remarks

Decodes '%'-escaped octets in the given string using the UTF-8 scheme. Replaces invalid octets with the unicode replacement character ("\\uFFFD").

Java documentation for android.net.Uri.decode(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