1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

📝 added documentation wrt. UTF-8 strings #406

This commit is contained in:
Niels Lohmann
2017-01-04 18:07:46 +01:00
parent cdd3b5a68c
commit 4765070318
3 changed files with 14 additions and 2 deletions

View File

@ -450,6 +450,12 @@ class basic_json
std::string
@endcode
#### Encoding
Strings are stored in UTF-8 encoding. Therefore, functions like
`std::string::size()` or `std::string::length()` return the number of
bytes in the string rather than the number of characters or glyphs.
#### String comparison
[RFC 7159](http://rfc7159.net/rfc7159) states: