• 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
Re: Entering UniCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entering UniCode


  • Subject: Re: Entering UniCode
  • From: Segher Boessenkool <email@hidden>
  • Date: Sun, 8 Feb 2004 06:53:46 +0100

How does one enter UniCode characters into a string in Project Builder given the UniCode value? I know the syntax is something like "\U0064", but I can't seem to get it quite right, and I can't find anything in the docs about it. Any help would be appreciated.

I don't believe there is any such syntax.

It gives me a warning that leads me to believe there's a way. It says:

incomplete universal-character-name

twice for a line containing @"\U0064", for example.

The correct syntax is \u0064 (note: lowercase) for 16-bit unicode;
\U00000064 for 32-bit unicode. Also note that 0064 is not allowed
by the C standard (the only codes smaller than 00a0 which are allowed
are the codes for $, @ and `).


Segher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Entering UniCode
      • From: Darrin Cardani <email@hidden>
References: 
 >Entering UniCode (From: Darrin Cardani <email@hidden>)
 >Re: Entering UniCode (From: Chris Hanson <email@hidden>)
 >Re: Entering UniCode (From: Darrin Cardani <email@hidden>)

  • Prev by Date: Re: Drawing onto NSImageView subclass (Newbie)
  • Next by Date: identification of preference modules and making them visible.
  • Previous by thread: Re: Entering UniCode
  • Next by thread: Re: Entering UniCode
  • Index(es):
    • Date
    • Thread