about the problem of libjson

about the problem of libjson
0.0 0


when the json string contains chinese ,it may be encoded just like “1d1\u624b\u738b”,
how can i decode it to be chinese when i using libjson in c++.


Have you already solved this issue? I have met the same problem with you:(


maybe you can use jsoncpp
it can decode string like: jsonobject.asCString() or jsonobject.asString()
and it will decode that string in UTF-8 for you.


Splash, thank you for your suggestion. After many test and debug works, I have changed to jsoncpp, and it works find for me :slight_smile: