I used to be able to convert EUC japanese data into NSString by using the following code. The expected result is "目標". But I just tried to use IOS 8 simulator and the result is null.
const char bytes[]={0xcc, 0xdc, 0xc9, 0xb8};
NSData *d=[[NSData alloc] initWithBytes:bytes length:sizeof(bytes)];
NSString *s=[[NSString alloc] initWithData:d encoding:NSJapaneseEUCStringEncoding];
NSLog(@"%@",s);
Any one knows if this is a bug or something I failed to notice?