FROM : Ali Ozer
DATE : Thu Dec 02 22:04:58 2004
> So, you're only allowed (or it's only safe) to have 7-bit ASCII in
> these babies. Like David said, you should investigate using "strings"
> files, to be able to load localized strings.
If a strings file is overkill for your situation, another alternative
is to create the string using an appropriate creation method. For
instance,
const static unichar u[] = ; // 0x00e6 is UniCode for 'æ'
NSString *s = [NSString stringWithCharacters:u length:sizeof(u) /
sizeof(unichar)];
or perhaps
NSString *s = [NSString stringWithFormat:@"%C", 0x00e6];
Ali
DATE : Thu Dec 02 22:04:58 2004
> So, you're only allowed (or it's only safe) to have 7-bit ASCII in
> these babies. Like David said, you should investigate using "strings"
> files, to be able to load localized strings.
If a strings file is overkill for your situation, another alternative
is to create the string using an appropriate creation method. For
instance,
const static unichar u[] = ; // 0x00e6 is UniCode for 'æ'
NSString *s = [NSString stringWithCharacters:u length:sizeof(u) /
sizeof(unichar)];
or perhaps
NSString *s = [NSString stringWithFormat:@"%C", 0x00e6];
Ali
| Related mails | Author | Date |
|---|---|---|
| Daniel Eggert | Dec 2, 11:22 | |
| David Dunham | Dec 2, 16:19 | |
| j o a r | Dec 2, 16:28 | |
| Peter Bierman | Dec 2, 21:15 | |
| Ali Ozer | Dec 2, 22:04 | |
| Clark Cox | Dec 3, 22:54 | |
| Daniel Eggert | Dec 8, 13:51 |






Cocoa mail archive

