Skip to content

Instantly share code, notes, and snippets.

@priore
Created December 26, 2013 14:35
Show Gist options
  • Save priore/8134505 to your computer and use it in GitHub Desktop.
Save priore/8134505 to your computer and use it in GitHub Desktop.
Convert Unicode string into readable string
NSString *input = @"\\u5404\\u500b\\u90fd";
CFStringTransform((__bridge CFMutableStringRef)input, NULL, CFSTR("Any-Hex/Java"), YES);
NSLog(@"Readable string: %@", input);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment