반응형 자바 URLEncoder1 [Java] URLEncoder , URLDecoder 예제 _ UnsupportedEncodingException ■ 자바 URLEncoder /** * URLEncoder * @throws UnsupportedEncodingException */ public static String getURLEncode(String url) throws UnsupportedEncodingException { if (url == null) { return null; } try { return URLEncoder.encode(url, "UTF-8"); } catch (Exception e) { return ""; } } ■ 자바 URLDecoder /** * URLDecoder * @throws UnsupportedEncodingException */ public static String getURLDecode(String url).. 2022. 5. 4. 이전 1 다음 반응형