0
У меня есть NSData
от +[NSJSONSerialization dataWithJSONObject:options:error:]
. Как кодируются данные?Как я могу указать NSStringEncoding из NSData?
У меня есть NSData
от +[NSJSONSerialization dataWithJSONObject:options:error:]
. Как кодируются данные?Как я могу указать NSStringEncoding из NSData?
Посмотрите на комментарий выше метода в файле .h:
The resulting data is a encoded in UTF-8.
и [документации Apple, для 'dataWithJSONObject: опции: ошибка:'] (https://developer.apple.com/library/ ios/documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html # // apple_ref/occ/clm/NSJSONSerialization/dataWithJSONObject: options: error :) говорит так же, как и многое другое. –