|
From: | Richard Frith-Macdonald |
Subject: | Re: getting number of encoding name |
Date: | Wed, 1 Dec 2004 13:42:25 +0000 |
On 12 Jan 2004, at 13:26, David Wetzel wrote:
hi folks,imagine, you have @"NSISOLatin1StringEncoding" (a String) but you want 5 (number)..is there a way to convert this without re-inventing the wheel?
Not really ...You can use +availableStringEncodings and +localizedNameOfStringEncoding: to build a mapping from name to number, then use that mapping.
[Prev in Thread] | Current Thread | [Next in Thread] |