Menu

#2 Added support for UTF-8 character \u0000 in string

open
nobody
None
5
2011-12-08
2011-12-08
Jerome Lang
No

I strongly needed support for binary values 0 in a string (not as terminator). I added a new function cJSON_CreateStringWithLen(..) to create a JSON string which contains the binary value 0 (non-printable character \u0000). Creating string arrays with strings containing the binary value 0 using cJSON_CreateStringArray(..) is not supported.

I would be pleased if this feature is merged (after further review/enhancement) to trunk.

Discussion

  • Jerome Lang

    Jerome Lang - 2011-12-08
     
  • Jerome Lang

    Jerome Lang - 2011-12-08

    Changed struct cJSON.

     
  • Dave Gamble

    Dave Gamble - 2013-02-05

    It's a pretty chunky change, and I'm going to need to tooth-comb through to check it... sorry I'm being so slow on this one, but please do leave it with me.

     

Log in to post a comment.