°á°úÀÔ´Ï´Ù..


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :ÀüÀÀ½Ä 1998³â 2¿ù 25ÀÏ 13:30:21

In Reply to: Áú¹®. posted by ±è´öÅ on 1998³â 2¿ù 25ÀÏ 11:42:54:

¸ÕÀú °ü½ÉÀ» °¡Á®ÁֽŰͿ¡ ´ëÇØ °¨»ç¸¦µå¸®°í,
´ë´äÀÌ ´À·Á Á˼ÛÇÕ´Ï´Ù


Oracle ¿¡´Â '°¡³ª´Ù 123 abc'·Î ÀÔ·ÂÀ» ÇÏ°í ¾Æ·¡ÀÇ
¼Ò½º·Î Test¸¦ Çغ¸¾Ò½À´Ï´Ù.



public static String fromUni12( String uni12 )
{
int len = uni12.length();
char[] out = new char[len];
byte[] ksc = new byte[2];
for( int i = 0; i < len; i++ )
{
char c = uni12.charAt(i);
if ( c < 0x3400 && 0x4dff < c )
{
out[i] = c;
}
else if ( 0x3d2e <= c ) // À¯´ÏÄÚµå 1.2 ÇÑ±Û º¸Ãæ ¿µ¿ª A, B
{
System.err.println( "Warning: Some of Unicode 1.2 hangul character was ignored." );
out[i] = '\ufffd';
}
else // À¯´ÏÄÚµå 1.2ÀÇ KSC5601 ´ëÀÀ ÇÑ±Û ¿µ¿ª
{
try
{
ksc[0] = (byte) ( (c - 0x3400) / 94 + 0xb0 );
ksc[1] = (byte) ( (c - 0x3400) % 94 + 0xa1 );
out[i] = new String( ksc, "KSC5601" ).charAt(0);
System.out.println(String.valueOf(out)+","+Integer.toHexString(ksc[0])+","+Integer.toHexString(ksc[1])) ;
System.out.println(Integer.toHexString(String.valueOf(out).charAt(i))) ;
}
catch( java.io.UnsupportedEncodingException ex )
{ throw new InternalError( "Fatal Error: KSC5601 encoding is not supported." );
}
}
}
return new String( out );
}


±×¸®ÇÏ¿´´õ´Ï °á°ú°¡ ÀÌ·¸°Ô ³ª¿Ô½À´Ï´Ù.



°¡ ,ffffffb0,ffffffa1
ac00
°¡³ª ,ffffffb3,ffffffaa
b098
°¡³ª´Ù ,ffffffb4,ffffffd9
b2e4
°¡³ª´Ù# ,23,ffffff87
23
°¡³ª´Ù## ,23,ffffff98
23
°¡³ª´Ù### ,23,ffffff99
23
°¡³ª´Ù#### ,23,ffffff9a
23
°¡³ª´Ù##### ,23,ffffff87
23
°¡³ª´Ù#####$ ,24,6a
24
°¡³ª´Ù#####$$ ,24,6b
24
°¡³ª´Ù#####$$$,24,6c
24
20String1= °¡³ª´Ù#####$$$



´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]