XCode中的调试器控制台编码已损坏 [英] Debugger console encoding in XCode is broken
问题描述
非拉丁文本输出在XCode调试控制台中非常奇怪的方式。如何正确?
Non-latin text outputs very strange way in XCode debug console. How make it right?
例如: Ä-æ-≤-μ-à-∞-∞-μ-Ω--ç-∫-∞-Ω-∞
(帮助我提高我的问题,因为我的英语不好,让我知道如果很难理解我在这里写的。)
(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 _
是从plist加载的iVar NSString 。它用作uiviewcontroller的标题,在iPhone& iPad。
title_
is iVar NSString loaded from plist. It's used as title of uiviewcontroller and works fine on iPhone & iPad.
推荐答案
由于我将调试器从lldb更改为gdb输出已成功。
Since I changed debugger from lldb to gdb output had become OK. So, something wrong must be with lldb.
在xcode 4:菜单 - >产品 - >管理方案...然后点击编辑按钮 - > Run Your.app左面板) - >调试器 - >将其从LLDB更改为GDB。
In xcode 4: Menu -> Product -> Manage Schemes... Then tap Edit button -> Run Your.app (Left panel) -> Debugger -> change it from LLDB to GDB.
这篇关于XCode中的调试器控制台编码已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!