| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
18 okt 2005 kl. 22.45 skrev John Stiles:
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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
| References: | |
| >Nonbreaking spaces in alerts (From: "Paul J. Lucas" <email@hidden>) | |
| >Re: Nonbreaking spaces in alerts (From: John Stiles <email@hidden>) | |
| >Re: Nonbreaking spaces in alerts (From: "Paul J. Lucas" <email@hidden>) | |
| >Re: Nonbreaking spaces in alerts (From: Elias Mårtenson <email@hidden>) | |
| >Re: Nonbreaking spaces in alerts (From: John Stiles <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.