User forums > Using Code::Blocks

German umlauts in MessageBox

(1/2) > >>

Newling:
When I create a messagebox and the program will start, the german umlauts are not displayed correctly on the messagebox.


--- Code: ---MessageBox(hwndDlg, "äöüÄÖÜ?", "MessageBox", MB_OK);
--- End code ---

The result is:
--- Code: ------------------------------
MessageBox
---------------------------
äöüÄÖÜ?
---------------------------
OK   
---------------------------
--- End code ---
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!

BlueHazzard:
1) this is not a general programming forum, so this is OT and a admin will probably lock it
2) Umlauts are unicode and so can't be passed as normal strings in wxWidgets because it uses UTF-16 unless you say you wan't use UTF-8
3) I would ask this question in the wxWidgets forums, because this is a wxWidgets topic...

greetings and good night

Newling:
1)This is not a general question about programming, but a question of the behavior of C :: B.
2)Umlauts are not generally Unicode, the umlauts in the main.cpp is ASCII code.
3)I do not use wxWidgets, the program is written in C.

greetings and good morning  :)

stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Post the Full Build log here and on a site that supports your Compiler; maybe someone will see a problem.

If you really think it is a Code::Blocks bug; please follow this template on reporting the issue.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

I think it is likely a Compiler issue; but, it might be a CB setting issue.

NOTE: CB is an IDE it is NOT a compiler! This site does NOT support any compiler or learning/fixing C programs.

Tim S.

oBFusCATed:

--- Quote from: Newling on November 05, 2013, 06:44:18 am ---3)I do not use wxWidgets, the program is written in C.

--- End quote ---
Compile from the command line and see if it works. If it does then it is C::B problem, else it is a compiler/setup problem.

Navigation

[0] Message Index

[#] Next page

Go to full version