标签:gtk 中文
源文件改为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 ("选择"));
本文出自 “一些” 博客,谢绝转载!
标签:gtk 中文
原文地址:http://2924037.blog.51cto.com/2914037/1744711