manpagez: man pages & more
info libidn
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12.2.3 TestIDNA

The TestIDNA program allows to test the IDNA implementation manually or against Simon Josefsson’s test vectors.

The test vectors can be found at the Libidn homepage, http://www.gnu.org/software/libidn/.

To test the transformation manually, use:

$ java -cp .:../libidn.jar TestIDNA -a <string to test>
Input: <string to test>
Output: <toASCII(string to test)>
$ java -cp .:../libidn.jar TestIDNA -u <string to test>
Input: <string to test>
Output: <toUnicode(string to test)>

To test against draft-josefsson-idn-test-vectors.html, use:

$ java -cp .:../libidn.jar TestIDNA -t
No errors detected!

This document was generated on February 1, 2012 using texi2html 5.0.