import java.net.URLEncoder; public class MainClass { public static void main(String[] args) throws Exception { System.out.println(URLEncoder.encode("A.B.C.E", "UTF-8")); } }
A%28B%29C%28D%29