I have NSData from +[NSJSONSerialization dataWithJSONObject:options:error:]. How is the data encoded?

有帮助吗?

解决方案

Look at the comment above the method in the .h file:

The resulting data is a encoded in UTF-8.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top