title: How to convert unicode strings to respective locale strings in cpp
body: <p>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</p>
  
  <pre><code>std::wstring wide_string = std::wstring_convert&lt;std::codecvt_utf8&lt;wchar_t&gt;&gt;().from_bytes(plainString).value());
  
  printf("\n[%ls]|[logs]|[info]: wide string...", wide_string);
  </code></pre>
  
  <p>This is my unicode string : \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc
  Expected output : コンポーネントインストーラー</p>
  
  <p>But am getting the unicode strings printed as they are.
  Any help would be greatly appreciated.</p>