안드로이드 개발 질문/답변
(글 수 45,052)
java.io.UnsupportedEncodingException: euc-kr; 이런 에러가 뜹니다.
JEditorPane jep = new JEditorPane();
jep.setEditable(false);
EditorKit htmlKit = jep.getEditorKitForContentType("text/html");
HTMLDocument doc = (HTMLDocument) htmlKit.createDefaultDocument();
jep.setEditorKit(htmlKit);
URL u = new URL("http://www.melon.com");
InputStream in = u.openStream();
jep.read(in, doc); --->>> 여기에서 에러가 납니다.
우리 나라 사이트라서 그런거 같은데요.
저 에러를 처리 할 수 있는 방법이 없을까요?
도움 부탁드립니다.
JEditorPane jep = new JEditorPane();
jep.setEditable(false);
EditorKit htmlKit = jep.getEditorKitForContentType("text/html");
HTMLDocument doc = (HTMLDocument) htmlKit.createDefaultDocument();
jep.setEditorKit(htmlKit);
URL u = new URL("http://www.melon.com");
InputStream in = u.openStream();
jep.read(in, doc); --->>> 여기에서 에러가 납니다.
우리 나라 사이트라서 그런거 같은데요.
저 에러를 처리 할 수 있는 방법이 없을까요?
도움 부탁드립니다.



