Cannot able to show chinese text in gtk application

Hello world !
Iam trying to show the Chinese text in gtk application by using gtklabel .But Rectangular boxes with numbers are showing instead of Chinese Text.How can i Show the Chinese text in gtk application.

code:
const char *combined_text = “你好”; // Combined text

GtkWidget *label = gtk_label_new(combined_text);

output:

Hello,

That can happen when the font doesn’t support the characters. Could also be an encoding issue.

First, make sure combined_text is an UTF8 string.

Which OS are you using? which version of gtk? and which font?
(you can use gtk-query-settings to see the default font used by gtk)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.