tags:

views:

819

answers:

1

Hi,

I'm trying to convert an NSString to a single char. When I write [[NSLocale] currentLocale] objectForKey:NSLocaleDecimalSeparator], I get @",". How can I convert this to ','?

Thank you!

+2  A: 
unichar character = [myNSString characterAtIndex:0];
Mehrdad Afshari
Note this is not a C char - as unicode might be more than one byte
Mark
Yeah............. note.
bobobobo
will be. its always 2 bytes ain't it.
bobobobo