User forums > Using Code::Blocks

Problems with umlaut in wxSmith

(1/3) > >>

geronet:
Hello ;)

wxSmith is a great Tool, but if i use an umlaut like "°C" in a dialog i get this:



I wanted to compile with unicode enabled, but there i get errors with every string in the code.. I don't know why. How can i fix this problem?

Thanks in advance, Stefan

MortenMacFly:

--- Quote from: geronet on August 02, 2006, 06:17:19 pm ---I wanted to compile with unicode enabled, but there i get errors with every string in the code.. I don't know why. How can i fix this problem?

--- End quote ---
There is a nice article on how to prepare wxWidgets code for unicode e.g here: http://www.wxwindows.org/manuals/2.6.3/wx_unicode.html. Keep in mind that you have to compile the wxWidgets lib(s) for unicode, too and setup your C::B project appropriately (or use the wizard to create a stub for you).

With regards, Morten.

geronet:
And what should i do without unicode?

MortenMacFly:

--- Quote from: geronet on August 03, 2006, 05:57:02 pm ---And what should i do without unicode?

--- End quote ---
I thought your intenetion was to compile unicode. I wonder why you want to design yyour application in ANSI. Does this becasue you have to be compatible to Win9x or similar? Otherwise I'd suggest you start with unicode right from the start...?!
If you want ANSI you could try to use the ASCii code instead, maybe?!

MortenMacFly:
Hmmm... now I wonder: I used the wizard to create a wxWidgets ANSI application and changed the "About" message to:

--- Code: ---wxMessageBox(msg, _("Welcome to °C"));

--- End code ---
I get a message as attached - thus: This actually works! I'm not sure what you're doing wrong. What's your sys config? (Mine is WXP-SP2, German).
With regards, Morten.

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

Go to full version