hpple icon indicating copy to clipboard operation
hpple copied to clipboard

How to use it with kCFStringEncodingGB_18030_2000

Open allran opened this issue 12 years ago • 1 comments

How to use it according to parse gb2312 html? Thank you.

NSStringEncoding encoding = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000); TFHpple *xpathParser = [[TFHpple alloc] initWithHTMLData:htmlData encoding:[NSString stringWithFormat:@"%lu",(unsigned long)encoding]];

And it doesn't help me .

allran avatar Dec 23 '13 14:12 allran

Did you try to use initWithHTMLData only? I have a page with encoding iso-8859-1 and I didn't have to use that.

premedios avatar Dec 31 '13 16:12 premedios