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

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


  • Subject: Re: wchar_t (utf-32) to NSString to utf-16
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 15 Aug 2006 15:57:51 -0500


On Aug 15, 2006, at 3:47 PM, Michael Marmarou wrote:

This is a good start, but the utf32 support is 10.4 only.  I need to
target 10.3 as well.

Although the constant appears in 10.4 and later, it may be the case where there is underlying support for UTF-32 in older OS versions. Best bet is to contact DTS.


Having said that, it _may_ be the case where your data contains values in the UTF-32 space such that all have upper [or lower] words of 0x0000. Thus, it's trivial to convert them their UTF-16 equivalents. However, if the data is using certain UTF-32 codepoints, then you will definitely need a proper converter.

--
Rick

On 8/15/06, Nick Zitzmann <email@hidden> wrote:

On Aug 15, 2006, at 2:37 PM, Michael Marmarou wrote:

> Is there any way to do this with
> Cocoa?

Sort of.

> If not, does anyone have a suggestion of how to do it?

See CFString.h, specifically the UTF-32 encodings and the
CFStringConvertEncodingToNSStringEncoding() function.
_______________________________________________
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

___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com

_______________________________________________
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


References: 
 >wchar_t (utf-32) to NSString to utf-16 (From: "Michael Marmarou" <email@hidden>)
 >Re: wchar_t (utf-32) to NSString to utf-16 (From: Nick Zitzmann <email@hidden>)
 >Re: Re: wchar_t (utf-32) to NSString to utf-16 (From: "Michael Marmarou" <email@hidden>)

  • Prev by Date: Re: Re: wchar_t (utf-32) to NSString to utf-16
  • Next by Date: Re: wchar_t (utf-32) to NSString to utf-16
  • Previous by thread: Re: Re: wchar_t (utf-32) to NSString to utf-16
  • Next by thread: Re: wchar_t (utf-32) to NSString to utf-16
  • Index(es):
    • Date
    • Thread