From: http://erisenxu.bokee.com/viewdiary.13391975.html
In GTK +, the UTF-8 encoding must be used to display Chinese characters. But we usually use the GB code in China. Therefore, different codes may cause Chinese garbled characters. The key to the solution is to convert the Chinese into a UTF-8 and then pass it to the GTK display. GTK + provides a function g_locale_to_utf8 (), which is a function that GTK converts the system's default encoding to a UTF-8. However, each call to this function requires five parameters, which is too much and troublesome. Therefore, a function can be used to encapsulate: char * _ T (char * Str) {return g_locale_to_utf8 (STR,-1, 0, 0, 0 );} if you need to call it, you can use _ T ("Chinese") to successfully display Chinese characters. This method is successfully tested in RedHat Linux 9 and Windows XP.
I successfully tested vs2008 in win7.