• 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: 8-bit chars in @""
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8-bit chars in @""


  • Subject: Re: 8-bit chars in @""
  • From: Ali Ozer <email@hidden>
  • Date: Mon, 25 Mar 2002 15:35:44 -0800

> [NSString stringWithCharacters:"\xFE\xFF\x20\x22" length:2]

This is still not right --- all methods which take "unichar *" assume
they are being handed in memory representations, which are in proper
endianness. So this code will still not work right on a little-endian
architecture.

In these cases NSString will also not strip off the BOM character. BOM
characters are processed properly only when NSString is dealing with
external formats.

Ali
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: 8-bit chars in @"" (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Low-level File Access
  • Next by Date: Re: Bundle, Wrappers, whatever
  • Previous by thread: Re: 8-bit chars in @""
  • Next by thread: Re: 8-bit chars in @""
  • Index(es):
    • Date
    • Thread