title: I use CreateWindowExA to create window. Why my window header text is displayed as if it was in multibyte encoding?
body: <p>I have this program:</p>
  
  <pre><code>#include &lt;Windows.h&gt;
  
  LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
  {
      switch(message)
      {
          case WM_CLOSE:
              PostQuitMessage(0);
              break;
  
          default:
              return DefWindowProc(hWnd, message, wParam, lParam);
      }
  
      return 0;
  }
  
  int main()
  {
      WNDCLASSA wnd_class = { 0 }; 
      wnd_class.lpfnWndProc = WndProc;
      wnd_class.hInstance = GetModuleHandle(NULL);
      wnd_class.lpszClassName = "actwnd";
  
      RegisterClassA(&amp;wnd_class);
  
      HWND main_wnd = CreateWindowA(wnd_class.lpszClassName, "Program activation", WS_OVERLAPPEDWINDOW | WS_VISIBLE, 0, 0, 640, 480, NULL, 0, wnd_class.hInstance, NULL);
  
      MSG msg = { 0 };
      while(GetMessage(&amp;msg, NULL, 0, 0) &gt; 0)
      {
          TranslateMessage(&amp;msg);
          DispatchMessage(&amp;msg);
      }
  }
  </code></pre>
  
  <p>I don't understand why the Window caption is displayed incorrectly:</p>
  
  <p><img src="https://i.stack.imgur.com/nnUSN.png" alt="enter image description here"></p>
  
  <p>It looks like for unknown for me reason, something still think this is unicode two byte encoding...</p>
  
  <p>The file advanced saving options encoding set to single byte one - win 1251.</p>
  
  <p>I want to use exactly ANSI versions and my window header contain only ANSI characters.</p>