IDN: toUnicode(String input) : IDN « java.net « Java by API






IDN: toUnicode(String input)

 
import java.net.IDN;

public class Main {
  public static void main(String[] args) {
    String input = "www.yourName.com";
    String ascii = IDN.toASCII(input);
    String unicode = IDN.toUnicode(input);

    System.out.println("Input:"+ input);
    System.out.println("toAscii (input):"+ ascii);
    System.out.println("toUnicode (input):"+ unicode);
  }
}

   
  








Related examples in the same category

1.IDN: toASCII(String input)