When I create a messagebox and the program will start, the german umlauts are not displayed correctly on the messagebox.
MessageBox(hwndDlg, "äöüÄÖÜ?", "MessageBox", MB_OK);
The result is:---------------------------
MessageBox
---------------------------
äöüÄÖÜ?
---------------------------
OK
---------------------------
The source code is ASCII characters, encoding when opening File is 'ISO-8859-1',
the compileroption '-finput-charset=iso-8859-1' is includiert.
What could still be wrong?
C::B svn9425
gcc 4.7.1
OS XP-SP3
Lang C
Thanks for any help!
The build log is:
-------------- Erstellen: Release in test1 (compiler: GNU GCC Compiler)---------------
g++.exe -Wall -O2 -O1 -finput-charset=iso-8859-1 -c "C:\Dokumente und Einstellungen\User\Desktop\test1\main.cpp" -o obj\Release\main.o
c++.exe -o bin\Release\test1.exe obj\Release\main.o obj\Release\resource.res -s -lgdi32 -luser32 -lkernel32 -mwindows
Output file is bin\Release\test1.exe with size 10,00 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
When I run the three lines in the console I get the exe with the same error:
g++.exe -Wall -O2 -O1 -finput-charset=iso-8859-1 -c "C:\Dokumente und Einstellungen\User\Desktop\test1\main.cpp" -o obj\Release\main.o
windres.exe -J rc -O coff -i C:\DOKUME~1\User\Desktop\test1\resource.rc -o obj\Release\resource.res
c++.exe -o bin\Release\test1.exe obj\Release\main.o obj\Release\resource.res -s -lgdi32 -luser32 -lkernel32 -mwindows
"äöüÄÖÜ?ß" => "äöüÄÖÜ?ß"