After using jsoncpp transfer print string in the assignment vs Chinese to Json :: Value unicode become garbled

One: Problem description

  Used in the Chinese vs jsoncpp assigned to Json :: Value after toStyledString () to print, the text has become a \ u characters to start with, but also inaccurate unicode code, as normal Chinese print:

After jsoncpp print becomes abnormal unicode:

II: solve

  Open source json_writer.cpp jsoncpp file, find valueToQuotedStringN function changes as shown:

 

 

Published 34 original articles · won praise 14 · views 70000 +

Guess you like

Origin blog.csdn.net/acliyu/article/details/103936278