Re: 8-bit chars in @""
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.