How do I split a string with special characters into a NSMutableArray
问题 I'am trying to seperate a string with danish characters into a NSMutableArray. But something is not working. :( My code: NSString *danishString = @"æøå"; NSMutableArray *characters = [[NSMutableArray alloc] initWithCapacity:[danishString length]]; for (int i=0; i < [danishString length]; i++) { NSString *ichar = [NSString stringWithFormat:@"%c", [danishString characterAtIndex:i ]]; [characters addObject:ichar]; } If I do at NSLog on the danishString it works (returns æøå); But if I do a NSLog