提交 24cf9308 编写于 作者: M Max Bruckner

README: Caveat about zero terminated strings

上级 51d3df6c
...@@ -375,6 +375,10 @@ which are more complex than I'd care to try and stash into a `const char array[] ...@@ -375,6 +375,10 @@ which are more complex than I'd care to try and stash into a `const char array[]
### Caveats ### Caveats
#### Zero Character
cJSON doesn't support strings that contain the zero character `'\0'` or `\u0000`. This is impossible with the current API because strings are zero terminated.
#### Character Encoding #### Character Encoding
cJSON only supports UTF-8 encoded input and will always produce UTF-8 as output (If the input contained invalid UTF-8, it will most likely propagate it through to the output, thereby making the output non-valid UTF-8). cJSON only supports UTF-8 encoded input and will always produce UTF-8 as output (If the input contained invalid UTF-8, it will most likely propagate it through to the output, thereby making the output non-valid UTF-8).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册