当前所在位置:珠峰网资料 >> 计算机 >> 计算机等级考试 >> 正文
JAVA的J2SE处理编码解码写法
发布时间:2010/8/23 11:03:11 来源:城市学习网 编辑:ziteng
  Java代码
  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);
  }
  }
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved