Get the character value instead of the string value. So instead of string @"F" you want character 'F'. NSLog(@"F = %d",'F');
You can do this with a larger string by using the method characterAtIndex:(NSUInteger)
and enumerating over the string.
int encVal = (int)[someString characterAtIndex:0];