반응형


unsigned short onechar = 0xC00D; // '쀍'의 유니코드값
unsigned short jongsung, jungsung,chosung;

jongsung = (onechar - 0xAC00) % 28;
jungsung = (onechar - 0xAC00 - jongsung) / 28 % 21;
chosung = ((onechar - 0xAC00 - jongsung) / 28 - jungsung) / 21;
       
chosung += 0x1100;
jungsung += 0x1161;
jongsung += 0x11A7;

printf("[%C] : [%C]/[%C]/[%C]",onechar, chosung, jungsung, jongsung);


요거 돌리면
[쀍] : [ᄈ]/[ᅰ]/[ᆰ]

chosung엔 'ㅃ', jungsung엔 'ㅞ', jongsung엔 'ᆰ';  
 

- 회사  지식공유게시판에서 -

반응형
Posted by 공간사랑
,