Created
April 30, 2013 07:40
-
-
Save Abeansits/5487191 to your computer and use it in GitHub Desktop.
Printing character per character to find those hard to see invisible characters that may mess up your JSON-parsing or similar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const unsigned char *ptr = [data bytes]; | |
for(NSUInteger i=0; i<[data length]; ++i) { | |
unsigned char c = *ptr++; | |
NSLog(@"char=%c hex=%x", c, c); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment