mirror of
https://github.com/nlohmann/json.git
synced 2026-04-30 19:59:26 +00:00
📝 clean up
This commit is contained in:
@@ -28,8 +28,8 @@ and `ensure_ascii` parameters.
|
||||
: how to react on decoding errors; there are three possible values (see [`error_handler_t`](error_handler_t.md)):
|
||||
: - `strict`: throws a [`type_error`](../../home/exceptions.md#type-errors) exception in case a decoding error occurs (this is the default),
|
||||
- `replace`: replace invalid UTF-8 sequences with U+FFFD (<28> REPLACEMENT CHARACTER),
|
||||
- `ignore`: ignore invalid UTF-8 sequences during serialization, and
|
||||
- `keep`: keep invalid UTF-8 sequences during serialization; all bytes are copied to the output unchanged
|
||||
- `ignore`: ignore invalid UTF-8 sequences during serialization (i.e., these bytes are skipped and not copied to the output), and
|
||||
- `keep`: keep invalid UTF-8 sequences during serialization (i.e., all bytes are copied to the output unchanged)
|
||||
|
||||
## Return value
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ replace
|
||||
: replace invalid UTF-8 sequences with U+FFFD (<28> REPLACEMENT CHARACTER)
|
||||
|
||||
ignore
|
||||
: ignore invalid UTF-8 sequences
|
||||
: ignore invalid UTF-8 sequences; these bytes are skipped and not copied to the output
|
||||
|
||||
keep
|
||||
: keep invalid UTF-8 sequences; all bytes are copied to the output unchanged
|
||||
|
||||
Reference in New Issue
Block a user