Re: about NSStringEncoding
Re: about NSStringEncoding
- Subject: Re: about NSStringEncoding
- From: Tito Ciuro <email@hidden>
- Date: Thu, 28 Aug 2003 11:22:38 +0200
Hello,
On jueves, agos 28, 2003, at 10:35 Europe/Paris, E.Ikeda wrote:
>
Hi,
>
I have a question about NSStringEncoding
>
I want to know all available string encoding.
>
The code below doesn't work well, but I don't know what is wrong.
>
Please help me.
>
Thanks in advance,
>
>
-----------------------------------------------------------------------
>
-
>
>
NSStringEncoding *encoding;
>
encoding = [NSString availableStringEncodings];
>
while (encoding++) {
>
NSLog([NSString localizedNameOfStringEncoding: *encoding]);
>
}
Try this:
const NSStringEncoding* encoding = [NSString availableStringEncodings];
while (* encoding != 0) {
NSLog(@"%d --> %@", * encoding, [NSString
localizedNameOfStringEncoding: * encoding]);
encoding ++;
}
-- Tito
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.