📝 added documentation wrt. UTF-8 strings #406

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

No files matched your search

+6
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: