I’m using a nsstring like separator, but when I show by console with simulator shows me well but when I do it with my iphone 4S shows me other thing.
I try to parse to utf8, ascii and i can´t solve it.
Can somebody tell me why its happening this??
#define SEPARATOR @"ääëëñS0ñççää"
-
Iphone Simulator:
NSLog(@”%@”,SEPARATOR); –>text in terminal: ääëëñS0ñççää` -
my Iphone 4S:
NSLog(@”%@”,SEPARATOR); –>text in terminal: √§√§√´√´√±S0√±√ß√ß√§√§`
const char *utf8String = [SEPARADOR UTF8String]; NSString *stringFromUTFString = [[NSString alloc] initWithUTF8String:utf8String]; NSLog(@"%@",stringFromUTFString);
Now, i did it this, and when i use the simulator show me the SEPARATOR correctly, however when i use my device he pass me the text to NSISOLatin1StringEncoding.
Xcode’s simulator uses the system fonts(Mac machine) to render the text, but the iPhone uses only the fonts embedded in it, which means all fonts available in the simulator may not be available on the iPhone.