final String input = "."; final boolean ok = input.equals(IDN.toASCII(input)); System.out.println("IDN.toASCII is " + (ok? "OK" : "BROKEN"));