Java Story

[ Java ] @PathVariable 인코딩

WhiteDuck 2016. 2. 3. 11:43

[ Java ] @PathVariable 인코딩


URLDecoder.decode((URLDecoder.decode(param, "8859_1")), "UTF-8"); //방법1

new String(param.getBytes("8859_1"), "utf-8"); //방법2

 

출처: <https://slipp.net/questions/254

반응형