• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
unicode text in the console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: bsd dynamic library dependencies help
  • Next by Date: Re: unicode text in the console
  • Previous by thread: Re: bsd dynamic library dependencies help
  • Next by thread: Re: unicode text in the console
  • Index(es):
    • Date
    • Thread