unicode text in the console
unicode text in the console
- Subject: unicode text in the console
- From: Matt Neuburg <email@hidden>
- Date: Tue, 29 Dec 2009 09:35:59 -0800
- Thread-topic: unicode text in the console
On 15 Sep 2009, at 09:44, Matt Neuburg wrote:
>>> Instead of escaped string values output like this in the debugger
>>> console:
>>>
>>> "\U03b1\U03b3\U03b3\U03b5\U03bb\U03bb\U03c9"
>>>
>>> ...is there any way I could get the console to show me the actual
>>> Unicode
>>> characters (glyphs)? m.
Still following up on this... The offending strings are in a dictionary. So,
if you ask a string to log itself to the console, you see the string, but if
you ask a dictionary to log itself to the console, its string values are
shown as above. Why?
So, for example:
NSLog(@"%@\n%@", card, [card valueForKey: @"greek"]);
Result 1 (partial):
{
greek = "\U1f14\U03c0\U03b5\U03b9\U03c4\U03b1";
}
Result 2 (this actually *is* Greek, though it may end up munged by the
listserver or your email client):
ἔπειτα
So what's going on? Why are we getting two different output modes for the
same value? And how can I fix this?
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden