I have done something like:
NSData *dt = [mystr dataUsingEncoding:NSWindowsCP1251StringEncoding];
NSString *str = [NSString alloc] initWithData:dt encoding:NSUTF8StringEncoding];
then NSLog(@"%@", str);
However, if 'mystr' is English then the NSLog would print it as is, but if mystr is Arabic (for ex.) NSLog will not print anything, so how can I change the encoding of mystr to UTF8?