Re: Nonbreaking spaces in alerts
Re: Nonbreaking spaces in alerts
- Subject: Re: Nonbreaking spaces in alerts
- From: John Stiles <email@hidden>
- Date: Tue, 18 Oct 2005 13:45:47 -0700
On Oct 18, 2005, at 1:38 PM, Elias Mårtenson wrote:
18 okt 2005 kl. 22.18 skrev Paul J. Lucas:
On Tue, 18 Oct 2005, John Stiles wrote:
Use option-space to make the non-breaking spaces. You can't use
@"blah" for
this, since it's no longer ASCII, but you can load it as a
localized string or
use stringWithUTF8String or something like that.
For the stringWithUTF8String, is there some Unicode code I can
use inline, e.g., @"Mac&#xxxx;OS&#xxxx;X" ?
Yes, @"Mac\u00A0OS\u00A0X" should work.
Um, I don't think that will work. @"" strings only work with ASCII
because there is no encoding specified. They might coincidentally
work with MacRoman at present, but this is not guaranteed behavior,
and the docs specifically warn against relying on this.
One thing you can do--try stringWithFormat. You can use %C to embed
Unicode characters. Or you can put the UTF8 encoded text into a const
char* buffer however you like (i.e. \x), and then use
stringWithUTF8String.
_______________________________________________
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