I get some JSON that has weird UTF-8 strings. For instance:
{
"title": "It\U2019s The End";
}
What is the best way to process this data so that it can be represented in a readable way? I would like to convert this \ U2019 to the quotation mark that it should represent.
Edit: Suppose I parse a string in NSString * jsonResult
Edit 2: I get JSON through AFNetworking :
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
NSString* jsonResult = [JSON valueForKeyPath:@"title"];
} failure:nil];
source
share