2024-07-01 00:49:41
2024-07-01 12:18:56
Byte keyByte[] = {0x08,0x08,0x04,0x0b,0x02,0x0f,0x0b,0x0c,0x01,0x03,0x09,0x07,0x0c,0x03,
0x07,0x0a,0x04,0x0f,0x06,0x0f,0x0e,0x09,0x05,0x01,0x0a,0x0a,0x01,0x09,
0x06,0x07,0x09,0x0d};
NSData *d = [NSData dataWithBytes:keyByte length:sizeof(keyByte)];
NSStringEncoding encodeGB2312=CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000);
char byte[[d length]];
for (int i = 0 ;i < [d length]; i++)
{
byte[i] = keyByte[i];
}
NSString *str = [NSString stringWithCString:byte encoding:encodeGB2312];
NSLog(@"%@", str);
2024-07-01 04:28:21
2024-07-01 13:18:52
2024-07-01 13:17:56