How use unicode characters in VC++

Hello,

I'm trying to have a button marked by the sqrt sign, '√'.
I wrote below code and typed that sign by holding down "alt" and typing 251 using numpad. But result is the question mark instead of sqrt mark!
How to solve the problem please?
My machine is Windows 7 x86 and IDE is visual studio 2012.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <GUI.h>
using namespace Graph_lib;

//---------------------------------

class Test : public Window {
public:
	Test(Point, int, int, const string&);

private:
	Button quit_button;
	void quit() { hide(); }
	static void cb_quit(Address, Address pw) { reference_to<Test>(pw).quit(); } 

};

//----------------------------------------------------------------------------------

Test::Test(Point xy, int w, int h, const string& title):
	Window(xy, w, h, title),
	quit_button(Point(x_max()-120, 120), 80,30, "√", cb_quit) {
	attach(quit_button);
  }

//-------------------------------------------

int main() {
		Test curr(Point(100,100), 500, 300, "Test");
		return gui_main();
}

Isn't there any solution!? :(
I believe the square root symbol is U+221A in the unicode table.
Use character map to pick this up. Also your VS font should support glyphs for any unicode symbols you may type to render them correctly in source code.
Thanks for the reply.
So how to set a character to that U+221A?

> Also your VS font should support glyphs for any unicode symbols you may type to render them correctly in source code.

Where to check it?
Topic archived. No new replies allowed.