0
我有NSData
從+[NSJSONSerialization dataWithJSONObject:options:error:]
。數據如何編碼?如何告訴NSData的NSStringEncoding?
我有NSData
從+[NSJSONSerialization dataWithJSONObject:options:error:]
。數據如何編碼?如何告訴NSData的NSStringEncoding?
看在.h文件的方法上面的評論:
The resulting data is a encoded in UTF-8.
和[蘋果的'dataWithJSONObject文檔:選項:錯誤:'](https://developer.apple.com/library/ ios/documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html#// apple_ref/occ/clm/NSJSONSerialization/dataWithJSONObject:options:error :)也表示同樣多。 –