iOS about Jsonkit parsing Unicode character content error, the problem is \u0000

Source: Internet
Author: User

Although Jsonkit is powerful, some special Unicode, such as \u0000, cannot be resolved.

On GitHub, the author explains the problem, saying that this is a content-provided error that does not conform to the standard content, so he does not consider this to be his own fault, which is the content provider's problem.

The author's exact words are as follows:

In this particular case, these services is very clearly "in the wrong". RFC 4627 is unambiguous that characters < 0x20are verboten. In cases-like there, where something was clearly violating the standard, my default response was that "It's the other person" S (Web Service) problem. " The standard are the standard, and it's Right (TM), even its mistakes.

Later I used the Sbjson to parse the success. Nsjsonserialization, the resolution is successful.
So if you like to use Jsonkit, but you have to parse the Unicode contains \u0000 words, it is necessary to special treatment, make judgments, personal comparison like Nsjsonserialization, above.

iOS about Jsonkit parsing Unicode character content error, the problem is \u0000

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.