Translated by Google:
I am programming a dialog-based MFC app with Visual Studio Community 2019.
I want to use umlauts and unfortunately I get strange special characters.
I enter directly in the resource editor for a CStatic for labeling e.g. E.g. an ö, I get the correct output when the dialog appears.
But if I want to assign a text to a CStatic in OnInitDialog () that contains an ö,
the dialog outputs a special character.
Where is the error? Somewhere a setting seems to be missing because the resource editor can, but the program line fails!
Am I better advised to still formulate in English here or that does not help much because of the special German ö problem.
Original:
Ich programmiere mit Visual Studio Community 2019 eine dialogbasierte MFC-App.
Ich möchte Umlaute setzen und bekomme leider seltsame Sonderzeichen.
Gebe ich direkt im Ressourceneditor für ein CStatic bei Beschriftung z. B. ein ö ein, erhalte ich die richtige Ausgabe, wenn der Dialog erscheint.
Möchte ich aber in OnInitDialog() ein CStatic mit einen Text belegen, der ein ö enthält,
gibt der Dialog ein Sonderzeichen aus.
Wo liegt der Fehler, irgendwo scheint eine Einstellung zu fehlen, weil ja eben der Ressourceneditor kann, die Programmzeile aber fehlschlägt!
Bin ich besser beraten, hier noch in Englisch zu formulieren oder bringt das wenig wegen der speziellen deutschen ö-Problematik.
What I have tried:
GetDlgItem(IDC_STATIC2)->SetWindowTextW(_T("Hello Wörld!"));