Re: NSUnicodeStringEncoding
Re: NSUnicodeStringEncoding
- Subject: Re: NSUnicodeStringEncoding
- From: Aki Inoue <email@hidden>
- Date: Mon, 14 Feb 2011 10:38:10 -0800
If the data is in-process UTF16 (i.e. host-endian UTF-16 without BOM), you should be using -initWithCharacters:length: instead.
Aki
On 2011/02/13, at 15:50, Kyle Sluder wrote:
> On Sun, Feb 13, 2011 at 3:17 PM, Todd Heberlein <email@hidden> wrote:
>> [[NSString alloc] initWithBytes:byte_stream length:len encoding:NSUTF16LittleEndianStringEncoding]
>
> Just make sure you're guaranteed to get little-endian UTF-16 from your
> C++ string. :)
>
> --Kyle Sluder
> _______________________________________________
>
> 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
_______________________________________________
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