FileDocCategorySizeDatePackage
DecoderTest.javaAPI DocExample348Sun Dec 12 10:52:02 GMT 2004None

DecoderTest.java

import java.io.*;
import java.net.*;

public class Test2 {

  public static void main(String[] args)
    throws Exception {
    String url = "http://www.%a4test.com/";
    try {
      String decoded = URLDecoder.decode(url, "UTF-8");
      System.out.println(decoded);
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
     
  }

}