FROM : Sean McBride
DATE : Tue Feb 12 21:04:05 2008
On 2/12/08 11:58 AM, James Hober said:
>What is the simplest, reasonably efficient way to determine if an
>NSString contains a non-ASCII character
How about:
BOOL foo = [string canBeConvertedToEncoding:
NSASCIIStringEncoding];
--
____________________________________________________________
Sean McBride, B. Eng <email_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
DATE : Tue Feb 12 21:04:05 2008
On 2/12/08 11:58 AM, James Hober said:
>What is the simplest, reasonably efficient way to determine if an
>NSString contains a non-ASCII character
How about:
BOOL foo = [string canBeConvertedToEncoding:
NSASCIIStringEncoding];
--
____________________________________________________________
Sean McBride, B. Eng <email_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
| Related mails | Author | Date |
|---|---|---|
| James Hober | Feb 12, 20:58 | |
| Aki Inoue | Feb 12, 21:01 | |
| Sean McBride | Feb 12, 21:04 | |
| James Hober | Feb 12, 22:29 |






Cocoa mail archive

