Freigeben über


IDN.ToUnicode Method

Definition

Overloads

ToUnicode(String)

Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.

ToUnicode(String, IDNFlags)

Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.

ToUnicode(String)

Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.

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

Parameters

input
String

the string to be processed

Returns

the translated String

Attributes

Remarks

Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.

This convenience method works as if by invoking the two-argument counterpart as follows: <blockquote> #toUnicode(String, int) toUnicode(input,&nbsp;0); </blockquote>

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

ToUnicode(String, IDNFlags)

Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.

[Android.Runtime.Register("toUnicode", "(Ljava/lang/String;I)Ljava/lang/String;", "")]
public static string? ToUnicode (string? input, Java.Net.IDNFlags flag);
[<Android.Runtime.Register("toUnicode", "(Ljava/lang/String;I)Ljava/lang/String;", "")>]
static member ToUnicode : 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

Remarks

Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.

ToUnicode never fails. In case of any error, the input string is returned unmodified.

A label is an individual part of a domain name. The original ToUnicode operation, as defined in RFC 3490, only operates on a single label. This method can handle both label and entire domain name, by assuming that labels in a domain name are always separated by dots. The following characters are recognized as dots: &#0092;u002E (full stop), &#0092;u3002 (ideographic full stop), &#0092;uFF0E (fullwidth full stop), and &#0092;uFF61 (halfwidth ideographic full stop).

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