源文件改为UTF8有BOM编码,然后对中文调用g_convert(),
如static gchar* chinese (gchar*sourceUtf8Bom) {
returng_convert(sourceUtf8Bom,-1,"UTF-8","GB2312",NULL,NULL,NULL);
}
...
gtk_tool_button_set_label (GTK_TOOL_BUTTON(btnSelect), chinese ("选择"));
时间: 2024-08-10 19:09:55