dash/src/univalue
Wladimir J. van der Laan 3f7f64a66b univalue: Handle UTF-8
Input: read and validate full UTF-8, both Basic Multilingual Plane
and extended characters.
Collate surrogate pairs as specified in RFC467.
This ensures that UTF-8 strings that reach the application are
always valid.

Output: Assume UTF-8 strings provided for output are valid.
The escaping was broken, fix this by not encoding UTF-8 characters with \u.
Simply write them to the output stream as-is.

This is the right thing to do. See https://www.ietf.org/rfc/rfc4627.txt:

    "JSON text SHALL be encoded in Unicode.  The default encoding is UTF-8."

Fixes #16.
Also add tests for the new functionality.
2016-05-31 04:31:02 +03:00
..
build-aux/m4
gen
include
lib univalue: Handle UTF-8 2016-05-31 04:31:02 +03:00
pc
test univalue: Handle UTF-8 2016-05-31 04:31:02 +03:00
.gitignore
.travis.yml
autogen.sh
configure.ac
COPYING
Makefile.am univalue: Handle UTF-8 2016-05-31 04:31:02 +03:00
README
TODO

		UniValue

A universal value object, with JSON encoding (output) and decoding (input).

Built as a single dynamic RAII C++ object class, and no templates.