日期:2014-05-20  浏览次数:20647 次

JAVA的J2SE处理编码解码写法
import java.net.URLDecoder;

public class URL {

	/**
	 * 解码应用案例
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception{
		String str = "C%3A%5CDocuments+and+Settings%5CAdministrator%5C%E6%A1%8C%E9%9D%A2%5Cother.txt";
		String result = URLDecoder.decode(str, "UTF-8");
		System.out.println(result);
	}
}