Class Punycode

java.lang.Object
uk.num.punycode.Punycode

public class Punycode extends Object
An incomplete translation of https://github.com/mathiasbynens/punycode.js
  • Constructor Details

    • Punycode

      public Punycode()
  • Method Details

    • decode

      public static String decode(String input)
      Decode a punycoded input string. There should be no `xn--` prefix
      Parameters:
      input - the input String
      Returns:
      String
    • encode

      public static String encode(String input)
      Encode a Unicode String to a punycoded String.
      Parameters:
      input - the input String
      Returns:
      a String