NSString *theString = @"a %C3%B8 b";
NSLog(@"%@", theString);
NSString *utf8string = [theString stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding]
NSLog(@"%@", utf8string);
const char *theChar = [utf8string UTF8String];
NSLog(@"%s", theChar);
This logs the following:
'a %C3%B8 b'
'a ø b'
'a √∏ b'
The problem is that I want theChar to be 'a ø b'. Any help on how to achieve that would be greatly appreciated.