• 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
wchar_t (utf-32) to NSString to utf-16
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wchar_t (utf-32) to NSString to utf-16


  • Subject: wchar_t (utf-32) to NSString to utf-16
  • From: "Michael Marmarou" <email@hidden>
  • Date: Tue, 15 Aug 2006 13:37:07 -0700

I don't see any documentation anywhere for converting a utf-32
(wchar_t*) string into an NSString or at least going to utf-16.  There
are a couple posts that just suggest not using wchar_t, but that is
impossible for me.

I don't need to perform any operations on the resulting string, it
simply needs to go from utf-32 to utf-16.  An output of a unsigned
short * would be fine as well.  Is there any way to do this with
Cocoa? If not, does anyone have a suggestion of how to do it?

Thanks
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: wchar_t (utf-32) to NSString to utf-16
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Applying a Drop Shadow to an NSView
  • Next by Date: Interface Builder Help Broken?
  • Previous by thread: Re: SubViews and Events
  • Next by thread: Re: wchar_t (utf-32) to NSString to utf-16
  • Index(es):
    • Date
    • Thread