UTF8로 단어 변환

UTF8로 단어 변환

query=URLEncoder.encode(str, “UTF-8”);

라고 쓰면 “신촌”이 %EC%8B%A0%EC%B4%8C 가 된다.