I am trying to decode a JSON into an NSDictionary with many string pairs. Some of the returned strings return as &
instead of &
and some of the non English characters appear as their url encoded value instead of their correctly decoded value. How can I fix this?
NSString *strContent = [[NSString alloc] initWithBytes:[responseData bytes] length:[responseData length] encoding: NSUTF8StringEncoding];
//I cache the string here
NSData *jsonData = [strContent dataUsingEncoding:NSUTF8StringEncoding];
NSError *error = nil;
NSDictionary *dictionary = [[CJSONDeserializer deserializer] deserializeAsDictionary:jsonData error:&error];