I have NSData
from +[NSJSONSerialization dataWithJSONObject:options:error:]
. How is the data encoded?
Asked
Active
Viewed 333 times
0

diogeneshamilton
- 568
- 1
- 5
- 12
1 Answers
3
Look at the comment above the method in the .h file:
The resulting data is a encoded in UTF-8.

ma11hew28
- 121,420
- 116
- 450
- 651
-
1and [Apple's documentation for `dataWithJSONObject:options:error:`](https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html#//apple_ref/occ/clm/NSJSONSerialization/dataWithJSONObject:options:error:) says as much, too. – Michael Dautermann May 11 '12 at 23:42