IDN.ToASCII Method

Definition

Overloads

ToASCII(String)

Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of <a href="http://www.

ToASCII(String, IDNFlags)

Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of <a href="http://www.

ToASCII(String)

Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of <a href="http://www.

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

Parameters

input
String

the string to be processed

Returns

String

the translated String

Attributes

Exceptions

if input does not conform to

Remarks

Java documentation for java.net.IDN.toASCII(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

ToASCII(String, IDNFlags)

Translates a string from Unicode to ASCII Compatible Encoding (ACE), as defined by the ToASCII operation of <a href="http://www.

[Android.Runtime.Register("toASCII", "(Ljava/lang/String;I)Ljava/lang/String;", "")]
public static string? ToASCII (string? input, Java.Net.IDNFlags flag);
[<Android.Runtime.Register("toASCII", "(Ljava/lang/String;I)Ljava/lang/String;", "")>]
static member ToASCII : string * Java.Net.IDNFlags -> string

Parameters

input
String

the string to be processed

flag
IDNFlags

process flag; can be 0 or any logical OR of possible flags

Returns

String

the translated String

Attributes

Exceptions

if input does not conform to

Remarks

Java documentation for java.net.IDN.toASCII(java.lang.String, int).

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