iPhone emoji encoding
encoding
이모티콘 인코딩
NSData *data = [sendMent dataUsingEncoding:NSNonLossyASCIIStringEncoding];
NSString *goodValue = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@" goodValue %@ ", goodValue);
decoding
이모티콘 디코딩
const char *jsonString = [reply UTF8String];
NSData *jsonData = [NSData dataWithBytes:jsonString length:strlen(jsonString)];
NSString *goodMsg = [[NSString alloc] initWithData:jsonData encoding:NSNonLossyASCIIStringEncoding];
NSLog(@" goodMsg %@ ", goodMsg);
반응형
그리드형
'IT > iOS' 카테고리의 다른 글
navigation bar title color (0) | 2014.02.04 |
---|---|
detailView 20pixel bug (0) | 2014.02.04 |
UITableView selected background color (0) | 2014.02.04 |
iOS6 특정뷰 회전 처리 (0) | 2014.02.04 |
CopyPNGfile error (0) | 2013.12.05 |
D-day 구하기 (0) | 2013.11.21 |
NSMutableArray Sort (0) | 2013.11.07 |
string 정규식 사용하여 html tag 삭제하기 (0) | 2013.10.28 |