Non-latin text outputs very strange way in XCode debug console. How make it right?
For example: Проверьте давление экрана.
became –ü—Ä–æ–≤–µ—Ä–∫–∞ –¥–∞–≤–ª–µ–Ω–∏—è —ç–∫—Ä–∞–Ω–∞
(Help me please improve my question because my english is not good. Let me know If it's hard to understand what I wrote here.)
- (id) initWithDictionary:(NSDictionary*)dictionary
{
//...
self.title = [dictionary objectForKey:@"Заголовок"] ; // dictionary from plist encoded in UTF8
//...
return self;
}
- (void) log
{
NSString *class = NSStringFromClass([self class]);
NSString *sel = NSStringFromSelector(_cmd);
NSLog(@"%@:%@:%@", class, title_, sel);
}
title_
is iVar NSString loaded from plist. It's used as title of uiviewcontroller and works fine on iPhone & iPad.