mirror of
https://github.com/nlohmann/json.git
synced 2026-07-09 12:05:10 +00:00
Overwork project infrastructure (#5218)
* 📡 overwork project infrastructure Signed-off-by: Niels Lohmann <mail@nlohmann.me> * 🚷 fix GCC16 issue Signed-off-by: Niels Lohmann <mail@nlohmann.me> * 🚷 fix GCC16 issue Signed-off-by: Niels Lohmann <mail@nlohmann.me> * 🚷 only build module for GCC Signed-off-by: Niels Lohmann <mail@nlohmann.me> * 🚷 fix build Signed-off-by: Niels Lohmann <mail@nlohmann.me> * 📡 fix documentation Closes #5012: fix the error_handler_t::ignore wording Signed-off-by: Niels Lohmann <mail@nlohmann.me> * 📡 fix documentation Closes #4354: fix "Custom data source" example Signed-off-by: Niels Lohmann <mail@nlohmann.me> --------- Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -27,8 +27,8 @@ and `ensure_ascii` parameters.
|
||||
`error_handler` (in)
|
||||
: how to react on decoding errors; there are three possible values (see [`error_handler_t`](error_handler_t.md):
|
||||
`strict` (throws an exception in case a decoding error occurs; default), `replace` (replace invalid UTF-8 sequences
|
||||
with U+FFFD), and `ignore` (ignore invalid UTF-8 sequences during serialization; all bytes are copied to the output
|
||||
unchanged)).
|
||||
with U+FFFD), and `ignore` (ignore invalid UTF-8 sequences during serialization; all valid bytes are copied to the
|
||||
output unchanged, and invalid bytes are dropped)).
|
||||
|
||||
## Return value
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ replace
|
||||
: replace invalid UTF-8 sequences with U+FFFD (� REPLACEMENT CHARACTER)
|
||||
|
||||
ignore
|
||||
: ignore invalid UTF-8 sequences; all bytes are copied to the output unchanged
|
||||
: ignore invalid UTF-8 sequences; all valid bytes are copied to the output unchanged, and invalid bytes are dropped
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user