Re: wchar_t (utf-32) to NSString to utf-16
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