2012. 7. 25. 15:49 아이폰

xcode에서는 한글이 3바이트 라더라 

그런데 난 윈도우에서 한글 2바이트로 처리했거든 


그래서 읽는 방법은 



        char *buftemp = (char *)malloc(sizeof(char) * 6);

        

        buftemp[0]=0xbf;

        buftemp[1]=0xc0;

        buftemp[2]=0xc8;

        buftemp[3]=0xc4;

        buftemp[4]=0x00;

        buftemp[5]=0x00;        

        DEBUGMSG(@"buftemp %@",[NSString stringWithCString:buftemp encoding:0x80000003]);


이러면 오후라는 글자가 찍힌다 



원문

posted by 욱이다