How to set receivedDataEncoding for big5 chinese?
I have a trouble in received data with chinese-big5 encoded web-page, and I tried to get some sample code but can not find I need for big5 like below:
if ([encodingName isEqualToString:@"euc-jp"]) {
receivedDataEncoding = NSJapaneseEUCSStringEncoding;
} else {
receivedDataEncoding = NSUTF8StringEncoding};
开发者_运维知识库
How to replace the part of "NSJapaneseEUCSStringEncoding" for big5 chinese encoding?
Thanks for answer first.
You can use the kCFStringEncodingBig5_E constant which is available in
CoreFoundation/CFStringEncodingExt.h
精彩评论