Re: Getting a bullet into a NSString
Re: Getting a bullet into a NSString
- Subject: Re: Getting a bullet into a NSString
- From: Camillo Lugaresi <email@hidden>
- Date: Wed, 15 Mar 2006 21:08:52 +0100
On 14/mar/06, at 20:16, mmalcolm crawford wrote:
On Mar 14, 2006, at 10:54 AM, John Stiles wrote:
But stringWithUTF8String should be fine, assuming your source file
is actually UTF-8 encoded.
In practice it does work for me (and for the OP until he shuffled
his files around, probably borking Xcode's "File Encoding" info).
Please read Ali's comments.
"... it's likely to lead to problems that occur only sometimes, and/
or only for some users, and/or only for some configurations."
** Don't do it. **
There are supported ways to do this that work reliably.
Actually, what John suggested will either work or break at compile
time. Once you have a binary that works on your machine, it will work
for all users and on any configuration, unless Apple breaks
stringWithUTF8String: (UBs count as two binaries here, so make sure
to test both architectures :P).
Camillo
_______________________________________________
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