How can I get this conversion from NSWindowsCP1251StringEncoding to UTF-8 ? I had several attempts, but no one worked as they should. My last attempt:
NSData *dt = [mystr dataUsingEncoding:NSUTF8StringEncoding]; NSString *str = [NSString alloc] initWithData:dt encoding:NSWindowsCP1251StringEncoding];
The result of str unreadable. Has anyone come across something similar?
source share