Reputation: 2332
I want to have some unicode labels in GTK+ interface windows. How can I use it? Code:
gtk_window_set_title(GTK_WINDOW(window), "ŲŪ");
Does not show anything in the window title bar so I guess it is because of encoding.
I am using Visual Studio 2012 and C compiler from Windows Driver Kit 7.1.0 which is outdated C99 compiler.
Update: I found this article http://owenshepherd.net/2010/the-sorry-state-of-unicode-in-c which claims that there is very poor support of unicode in C99.
Upvotes: 2
Views: 504
Reputation: 8815
if you need to use Unicode code points directly inside C, you can use the C escaped octal form; for instance, the Copyright sign © is \302\251
.
this table should help you converting code points: http://utf8-chartable.de/unicode-utf8-table.pl?utf8=oct
Upvotes: 3