Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode names




On 19 Jul 2008, at 08:41, Adam R. Maxwell wrote:

On Jul 18, 2008, at 5:45 AM, Gerriet M. Denkmann wrote:

Is there a way (Cocoa, Carbon or whatsoever) to get the Unicode name of a character?

Like: unicodeName( 0x1D110 ) = "MUSICAL SYMBOL FERMATA".

Sure, I could (at least on 10.4.11) read /System/Library/Perl/ 5.8.6/unicore/UnicodeData.txt, but as Unicode names are used in Edit -> Special Characters... there might be some system function to get at this info.

Try CFStringTransform() with kCFStringTransformToUnicodeName.

I did. Works perfectly. Thanks a lot!

Kind regards

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Unicode names (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Unicode names (From: "Adam R. Maxwell" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.