If you use NSLog(@"%@", ...)
to print the description of an array or dictionary, all non-ASCII characters are printed using a \Unnnn
escape sequence:
NSArray *a = [NSArray arrayWithObject:@"מערכת"];
NSLog(@"%@", a);
Output:
( "\U05de\U05e2\U05e8\U05db\U05ea" )
(The reason is that the description
method of NSArray
and NSDictionary
uses the Old-Style ASCII Property Lists format,
which, as the name indicates, allows only ASCII characters.)
If you print the description of a string, all characters are properly displayed:
NSLog(@"%@", [a objectAtIndex:0]);
Output:
מערכת
So this is only a display issue.