IDN toUnicode Example
IDN class toUnicode example. This example shows you how to use toUnicode method.
IDN class toUnicode example. public static String toUnicode(String input) Translates a string from ASCII Compatible Encoding (ACE) to Unicode, as defined by the ToUnicode operation of RFC 3490.
Here is the code
/*
* @ # ToUnicode.java
* A class repersenting use to ToUnicode method
* of IDN class in java.net package
* version 23 June 2008
* author Rose India
*/
import java.net.*;
public class ToUnicode {
public static void main(String args[]) {
String s = "http://google.com";
String s1 = IDN.toASCII(s);
System.out.println(IDN.toUnicode(s1));
}
} |
|