title: Unicode text appears as question marks in edit box, even though I use SetWindowTextW()
body: <p>I have a problem with unicode filenames appearing as question marks in my edit boxes.</p>
  
  <p>When I paste unicode characters in an edit box, for example Arabic or Thai, they show correctly, but after I run this code, they become question marks. How come?</p>
  
  <pre><code>WCHAR buf[100];
  GetWindowTextW(hWndEditBox, buf, 100);
  SetWindowTextW(hWndEditBox, buf);
  </code></pre>
  
  <p>Another thing - the project is ANSI (we have code that can't be ported so the entire project stays ANSI), i.e. _UNICODE macro is undefined, but I explicitly use the Unicode versions of the filenames.</p>