Morckovka
Morckovka

Reputation: 103

Parse KOI8-r encoding objective c

I need to parse url which is actually in KOI8-R encoding and as i've surfed there is no encoding in objective c which allows to do that.

It used to be smth like this NSString* fileText = [NSString stringWithContentsOfURL: [NSURL URLWithString:@"ThePageISurf.com"] encoding: NSCyrrilicKOI8-Rencoding error:nil];

Maybe there is a library/method to convert string to KOI8-R? Or Even URL directly? There is got to be the way....

Upvotes: 0

Views: 496

Answers (1)

Ken Thomases
Ken Thomases

Reputation: 90651

Try CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingKOI8_R).

Upvotes: 1

Related Questions