IDN.ToASCII 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
| 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
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
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.