I have some kind of weird problem. Code below
NSMutableString *unicodeString = [NSMutableString string]; for (NSUInteger i = 0; i < [data length]; i++) { unsigned char byte; [data getBytes:&byte range:NSMakeRange(i, 1)]; unichar unicodeChar = byte; NSString *appendString = [NSString stringWithFormat:@"%C",[_toUnicode unicharFromCIDString:unicodeChar]]; [unicodeString appendFormat:@"%@",appendString]; NSLog(@"%@",appendString);
print appendString, but unicodeString never prints. Is it due to problems with bytes? I tried to save appendString, but it still wonβt print
* UPDATED found the answer
source share