When using boost::property_tree::write_json()
to write a JSON file, all unicode characters will be represented as two "/u"-code points.
- So
ä
will become\u00C3\u00A4
.
My problem is, that I am generating a JSON file which will be read via JQuery to be shown in a web page. In that case, this pair will be shown as two separated unicode symbols.
- So
ä
looks likeä
Is there a way to configure the output encoding to get a single Utf16 code point? Or is there a way to tell jQuery to use both code-points as one?
Also, why is ä
becoming \u00C3\u00A4
instead of \u00E4
? I really don't get it.
Thanks for help!