| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Oct 18, 2005, at 2:23 PM, Elias Mårtenson wrote:
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.
The \u notation is specified in C99, and it's certainly accepted by Apple's gcc when using the -std=c99 option. However, I was surprised to see that while the compiler accepted the code, the result wasn't what I had expected.
My guess is that gcc erroneously does in fact let the string pass through some locale encoding, even though it shouldn't. The \u notation is supposed to allow you to enter Unicode values in the code without having to worry about the encoding of the local system that runs the compile.
| 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>) | |
| >Re: Nonbreaking spaces in alerts (From: Elias Mårtenson <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.