java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

#java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

Environment

  • OS : Windows Server 2012 R2
  • WAS : Apache Tomcat 7
  • Request URL : http://www.xxx.com/param=가

해결

String param = "가";

URLEncoder.encoding(param, "UTF-8");

으로 처리

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다