Bazı UTF-8 dizeleri olan bir JSON alıyorum. Örneğin: Bu verileri, okunabilir bir şekilde sunulabilmesi için en iyi yolu nedir? Bunu, U2019'u temsil etmesi gereken teklif işaretine dönüştürmek istiyorum.Doğru UTF-8'i iOS'ta JSON'da Yönetin
Düzenleme: Bir NSString * jsonResult
Edit 2 dizesi ayrıştırdığınızda varsayalım:
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
NSString* jsonResult = [JSON valueForKeyPath:@"title"];
} failure:nil];
Json'unuzu nasıl ayrıştırıyorsunuz? –
JSON'un nereden geldiğini göstermek için sorumu güncelledim. – hodgesmr
http://stackoverflow.com/questions/10838372/objective-c-nsstring-not-being-entirely-decoded-from-utf-8 –