Skip to content

Instantly share code, notes, and snippets.

Avatar

Jean-Luc Dagon jilouc

View GitHub Profile
View unicode.m
NSString *s = @"L'asso du jour est g\\U00e9niale";
NSMutableString *result = [NSMutableString string];
NSScanner *scanner = [NSScanner scannerWithString:s];
[scanner setCharactersToBeSkipped:nil];
while (![scanner isAtEnd]) {
NSString *chunk;
[scanner scanUpToString:@"\\U" intoString:&chunk];