Wednesday, 11 September 2013

NSLog hebrew characters from csv file in xcode

NSLog hebrew characters from csv file in xcode

NSString *path = [[NSBundle mainBundle]
pathForResource:@"hebrewLesson1and2" ofType:@"csv"];
NSArray *rows = [NSArray arrayWithContentsOfCSVFile:path];
NSLog(@"%@", rows);
My CSV file contains hebrew characters, which I would like to see print
out to the console. Currently they get printed out like
"\U05d6\U05b8\U05e7\U05b5\U05df" instead of something like "æÈ÷Åï".
Thanks for the help.

No comments:

Post a Comment