Skip to content

Docs: document that cJSON does not validate UTF-8 or reject unescaped… - #1133

Open
YikunWei-dev wants to merge 1 commit into
DaveGamble:masterfrom
YikunWei-dev:docs/string-encoding-notes
Open

YikunWei-dev wants to merge 1 commit into
DaveGamble:masterfrom
YikunWei-dev:docs/string-encoding-notes

Conversation

@YikunWei-dev

Copy link
Copy Markdown

… control characters

Clarify in the README 'Character Encoding' section and in the cJSON_Parse function comment that unescaped control characters (bytes < 0x20) inside strings are copied through verbatim. This is a deliberate lenient behavior, not a bug, so callers that need strict rejection must validate input themselves.

… control characters

Clarify in the README 'Character Encoding' section and in the cJSON_Parse
function comment that unescaped control characters (bytes < 0x20) inside
strings are copied through verbatim. This is a deliberate lenient behavior,
not a bug, so callers that need strict rejection must validate input
themselves.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant