Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ json parser euc-kr

#include <locale>
#include <codecvt>

const rapidjson::Value &Value = Doc["Chat"];
assert(Value.IsArry());
std::string jsonString = Value[0].GetString();	//[ea][b0][80][eb] ....
std::wstring_convert<std::codecvt_utf8<wchar_t>,<wchar_t> convertString;
std::wstring wideString = convertString.from_bytes(jsonString);
Source by zionlee.tistory.com #
 
PREVIOUS NEXT
Tagged: #json #parser
ADD COMMENT
Topic
Name
2+6 =