• 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: NSUnicodeStringEncoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSUnicodeStringEncoding (From: Todd Heberlein <email@hidden>)
 >Re: NSUnicodeStringEncoding (From: Kyle Sluder <email@hidden>)
 >Re: NSUnicodeStringEncoding (From: Todd Heberlein <email@hidden>)
 >Re: NSUnicodeStringEncoding (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Using NSTerminateLater with a Status Item
  • Next by Date: Re: NSTableView auto sorting does not work
  • Previous by thread: Re: NSUnicodeStringEncoding
  • Next by thread: specifying new document types that an app opens
  • Index(es):
    • Date
    • Thread