开发者

How to set receivedDataEncoding for big5 chinese?

开发者 https://www.devze.com 2023-03-07 15:33 出处:网络
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:

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

精彩评论

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