Java-IDNA
The Java-IDNA package has been integrated into the GNU IDN Library.
How to use it
- Download the latest archive from the Libidn Homepage and unpack it.
- Get the libidn.jar file from the java subdirectory.
-
You can now use the methods gnu.inet.encoding.IDNA.toASCII and
gnu.inet.encoding.IDNA.toUnicode to convert Unicode to ASCII and
vice versa:
gnu.inet.encoding.IDNA.toASCII("blöds.züg"); gnu.inet.encoding.IDNA.toUnicode("xn--blds-6qa.xn--zg-xka");