开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜