java.net.URLEncode 인코딩 및 URLdecode 디코딩 문제

518 단어 java.net
String   mytext   =   java.net.URLEncoder.encode("  ",   "utf-8");   
   String   mytext2   =   java.net.URLDecoder.decode(mytext,   "utf-8");   
     
                 ,      :   
   mytext:   %E4%B8%AD%E5%9B%BD     
   mytex2:       
  
  String   zhongguo=new      String(request.getParameter("zhongguo").getBytes("iso8859_1"));   
   zhongguo=java.net.URLDecoder.decode(zhongguo,"utf-8");  

좋은 웹페이지 즐겨찾기