본문 바로가기

Programming!

Unsupported Encoding EUC-KR


Weblogic 이나 타 Was도 마찬가지 였을 거라 짐작하고..

웹서비스관련 작업을 하다보니 클라이언트에 예상치 못한 Request 에 당황 스러울 때가 있는데요. 특정 서비스를 오픈하고 로그를 확인하는데

Unsupported encoding: "EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR" specified.
java.io.UnsupportedEncodingException: Unsupported Encoding EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR, text/xml;charset=EUC-KR

 이런 로그가 떨어집니다. 물론 서비스에는 지장이 없구요. 대충 구글아저씨에서 찾아보니 header 의 문제라는데 딱히 시원한 답변도 없고 해서 친분이 있는 SE:김풍주님에게 물어보니 "client 가 헤더에 append 하는게 아닐까요?" !!

 오호.. loop 를 잘못 돌리고 계신가 보군아! 아니나 다를까 특정 클라이언트가 열심히 append 를 하시면서 보내셨다는.

 아흑. API 담당한다를 이유로 이건뭐 내가 텔레마케터야 SE야 개발자야 현업이야 응? 풍주댈~ 목요일 쏠께요~~ㅋㅋ