Posted by ¹é½Â¿ë on October 01, 1997 at 17:19:13:
In Reply to: [Áú¹®]¿À¶óŬ JDBCÇÑ±Û ¹®Á¦Ã³¸® Á»? posted by Á¶ÅÂÈÆ on September 30, 1997 at 19:10:31:
¸ÕÀú DB¿¡ ÀúÀå
´ÙÀ½ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇϽʽÿä!
static public String ksc2asc(String str)
{
String result = null;
try {
byte[] rawBytes = str.getBytes("KSC5601");
result = new String(rawBytes, "8859_1");
}
catch (java.io.UnsupportedEncodingException e) {
System.err.println(e.toString());
}
return result;
}
´ÙÀ½¿¡ DB¿¡¼ ÀÐÀº ÇѱÛÀ» TextField³ª TextArea¿¡
º¸¿©ÁÙ¶§...
static public String asc2ksc(String str)
{
String result = null;
try {
byte[] rawBytes = str.getBytes("8859_1");
result = new String(rawBytes, "KSC5601");
}
catch (java.io.UnsupportedEncodingException e) {
System.err.println(e.toString());
}
return result;
}
¸¹Àº ÂüÁ¶°¡ µÇ±æ......