title: UrlUnescape() and unicode chars
body: <p>I am trying to write the program on C++ that will decode the URL-encoded string that contains some URL-encoded unicode characters.</p>
  
  <pre><code>#include &lt;windows.h&gt;
  #include &lt;string&gt;
  #include &lt;shlwapi.h&gt;
  #pragma comment(lib, "Shlwapi.lib")
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      std::wstring test = L"bla+%D0%B1%D0%BB%D0%BE%D1%84+%E6%97%A5%E6%9C%AC%E8%AA%9E";
      PWSTR urlencodedStr = const_cast&lt;WCHAR*&gt;(test.c_str());
      WCHAR decodedStr[1025];
      DWORD size = 1024;
      HRESULT hres = UrlUnescape(urlencodedStr, decodedStr, &amp;size, NULL);
  
      if (hres == S_OK)
          MessageBox(NULL, decodedStr, L"decoded string", MB_OK);
  
      return 0;
  }
  </code></pre>
  
  <p>I'm expecting to get L"bla блоф 日本語" in <strong>decodedStr</strong>. But i'm getting L"bla+Ð±Ð»Ð¾Ñ„+æ—¥æœ¬èªž" instead.
  I am using unicode charset in my build.
  What am i doing wrong?</p>