- input
- the Unicode name
- flags
- 0, ALLOW_UNASSIGNED, USE_STD3_ASCII_RULES, or ALLOW_UNASSIGNED | USE_STD3_ASCII_RULES
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if input does not conform to
Transform a Unicode String to ASCII Compatible Encoding String according to the algorithm defined in .
If the transformation fails (because the input is not a valid IDN), an exception will be thrown.
This method can handle either an individual label or an entire domain name. In the latter case, the separators are: U+002E (full stop), U+3002 (ideographic full stop), U+FF0E (fullwidth full stop), and U+FF61 (halfwidth ideographic full stop). All of these will become U+002E (full stop) in the result.