I am reading unicode string from an XML file in C++ program and when i print the string i get the unicode printed as plain text instead of the decoded locale string.I initially tried it with plain string and then used widestring for decoding .Here is the code snippet i used
std::wstring wide_string = std::wstring_convert<std::codecvt_utf8<wchar_t>>().from_bytes(plainString).value());
printf("\n[%ls]|[logs]|[info]: wide string...", wide_string);
This is my unicode string : \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc Expected output : コンポーネントインストーラー
But am getting the unicode strings printed as they are. Any help would be greatly appreciated.