• 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
Initializing unichar variable with a human readable letter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Initializing unichar variable with a human readable letter


  • Subject: Initializing unichar variable with a human readable letter
  • From: vincent habchi <email@hidden>
  • Date: Sat, 17 Jul 2010 22:58:03 +0200

Hi there,

I have a very simple problem: I'd like to affect to a unichar variable the value of the glyph é (or any non-ascii character).

If I (naively) write: "unichar foo = 'é';", I get a warning from the compiler about multibyte const and it does not work.

I'd like to avoid twisted constructs like [@"é" characterAtIndex:0], which works but looks weird, or esoteric notations like '\uXXXX' at whose reading nobody can figure out what the char is.

Does anybody knows about a better solution?

Thanks a lot and have a nice week-end
Vincent_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Initializing unichar variable with a human readable letter
      • From: James Bucanek <email@hidden>
    • Re: Initializing unichar variable with a human readable letter
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Data downloading performance
  • Next by Date: Re: WebView and Headers
  • Previous by thread: How to change login/password for proxy in System Preferences?
  • Next by thread: Re: Initializing unichar variable with a human readable letter
  • Index(es):
    • Date
    • Thread