There are similar threads, but didn't find answer.When read from txt (cyrillic) I got either \U00d0\U009d\U00d0 or ебе (win1251 or UTF8). Any solution to that? (first program).Thank you.
NSString *bundlePathName = [[NSBundle mainBundle] resourcePath];
NSString *filePathName = [NSString stringWithFormat:@"%@/text.txt", bundlePathName];
NSError *fileError;
NSString *Content=[NSString stringWithContentsOfFile:filePathName encoding:NSASCIIStringEncoding error:&fileError];
gives \U00d0\U009d\U00d0, next one produces ебе
const char *smth=[textContent cStringUsingEncoding:NSUTF8StringEncoding];
NSString *proba= [NSString stringWithCString:smth encoding:NSUTF8StringEncoding];