Hmmm... now I wonder: I used the wizard to create a wxWidgets ANSI application and changed the "About" message to:
wxMessageBox(msg, _("Welcome to °C"));
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]
I have WinXP SP2 (German), the latest C::B and gcc.
If i change the text label from the program with
StaticText3->SetLabel(_T("°C"));
it is correctly displayed, but that's not a solution.
In the .xrc it is also correct:
Any Suggestions? (perhaps in German?) ;)
I'm stuck now. If i compile in ANSI mode, i get dialogs like shown in the first post.
If i compile in unicode mode, i get errors because of the char '°' in the string shown here:
Textfield[i]->SetLabel(wxString::Format(_T("%.1f°C"), *(T[i].value)));
And now? I don't know..
Textfield[i]->SetLabel(wxString::Format(_T("%.1f\x00B0C"), *(T[i].value)));
with the help of the chart
http://www.unicode.org/charts/PDF/U0080.pdf
displays the character correctly on Linux, with msw i get some undefined character.
Maybe the cpp-file on Windows is ANSI? How can i change that?
On Linux i get
file main.cpp
main.cpp: ISO-8859 C program text, with CRLF, LF line terminators
It's ok now, i converted the file to utf-8 with "iconv -f ISO-8859-1 -t UTF-8 main.cpp" and now i have to insert the character
Textfield[i]->SetLabel(wxString::Format(_T("%.1f°C"), *(T[i].value)));
and it displays correctly ;)
PS: The C:B Editor doesn't show the correct character, it is displayed like here (two bytes, one A with ^on it and a °), but C:B is compiled with unicode enabled?!