Everything works well in the previous version of XCode. But today in the XCode 4.3.2 I have a problem. How do I log russian text or non-latin?
NSLog(@"russian text: русский текст");
NSString *text = @"russian text: русский текст";
const char *textC = [text UTF8String];
NSString *getText = [NSString stringWithCString:textC encoding:NSUTF8StringEncoding];
NSLog(@"___text: %@", getText);
My logs
russian text: —Ä—É—Å—Å–∫–∏–π —Ç–µ–∫—Å—Ç
___text: russian text: —Ä—É—Å—Å–∫–∏–π —Ç–µ–∫—Å—Ç
UPDATE:
The bug take place only on real device (ipod touch 5.1). It works properly on iphone simulator.
I found a solution. You need to change debugger from LLDB to GDB in Product->Edit Sheme. LLDB doesn't work correctly with russian language.