±Û¾´ÀÌ :À±°æ±¸ 1998³â 1¿ù 09ÀÏ 18:35:27
In Reply to: Á¦ ¼Ò½º¸¦ ºÐ¼®ÇØ º¸¼Ì±º¿ä... posted by ±èÇÊÈ£ on 1998³â 1¿ù 09ÀÏ 17:41:30:
¾Ñ, ÀÌ ¾²·¹µå°¡ ³Ê¹« ±æ¾îÁö´Â±º¿ä.
Á»´õ ÆíÇÑ °Ô½ÃÆÇÀ» ¸¸µé¾î¾ß ÇÒ ÅÙµ¥...
:-)
±×·±µ¥, TextArea¿¡ ÀÚ¹Ù ½ºÆ®¸µÀ» ³ÖÀ» ¶§ ±ú¾îÁø´Ù´Â °ÍÀº ÀÌÇØÇÒ ¼ö°¡ ¾ø½À´Ï´Ù.
¹ÙÀÌÆ® °ªÀ» ¹Ù·Î ÀÔ·ÂÇÏÁö ¾Ê´Â ÀÌ»ó ±ú¾îÁöÁö ¾ÊÀ» °ÍÀÔ´Ï´Ù.
Àû¾îµµ ÇÑ±Û ¿î¿µ üÁ¦ ȯ°æ¿¡¼ ½ºÆ®¸µÀÌ À¯´ÏÄÚµå·Î ÀÎÄÚµùµÇ¾î ÀÖ´Ù¸é Á¤»óÀûÀ¸·Î ÇѱÛÀÌ ÀԷµǵµ·Ï
ÀÚ¹Ù°¡ ³»ºÎ 󸮸¦ ÇÒ °ÍÀÔ´Ï´Ù.
½ÇÁ¦ JDK 1.1¿¡¼ ±×·± ¹®Á¦°¡ ¹ß»ýÇÏ´Â °æ¿ì´Â ¾ø¾ú´ø °Í °°½À´Ï´Ù.
ÇÏÁö¸¸ JDK 1.0À̶ó¸é ¹®Á¦°¡ ´Þ¶óÁö°ÚÁö¿ä.
½ÇÁ¦ ¹ÙÀÌÆ®¿Í ½ºÆ®¸µÀ» º¯È¯ÇÒ ¶§ ÇÏÀÌ ÄÚµå¶ó´Â °³³äÀÌ ÀÖ¾ú´ø °ÍÀº JDK 1.0 ¶§ ¸Þ¼ÒµåµéÀ̾úÁö¿ä.
Á¦ÀÓ½º °í½½¸µ ¾ÆÀú¾¾°¡ À¯´ÏÄڵ带 ÀÌÇØÇÏÁö ¸øÇؼ »ý±ä ÇØÇÁ´×À̾ú½À´Ï´Ù.
¾î·µç remove_high_ksc5601() ¸Þ¼Òµå´Â ´ÙÀ½°ú °°ÀÌ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù.
¾Æ¸¶µµ ±³¼ö´ÔÀÇ ¸Þ¼Òµå¿Í °°Àº ÀÏÀ» ¼öÇàÇÒ °ÍÀÔ´Ï´Ù.
private String convertBytes(String str){
try {
byte[] bytes=str.getBytes("8859_1");
result = new String(bytes, "KSC5601");
}
catch (java.io.UnsupportedEncodingException e) {
System.err.println(e.toString());
}
return result;
}
BufferedReader is=new BufferedReader(new InputStreamReader((BufferedInputStream)connection.getContent()));
while (true) {
String content=is.readLine();
if (content==null)
break;
ta.append(content+'\n');
}