Home > other >  GTK rendering UI interface, can't show Chinese, error WARNING: "* * * * (1864) : : WARNING
GTK rendering UI interface, can't show Chinese, error WARNING: "* * * * (1864) : : WARNING

Time:04-09

GTK rendering UI interface, can't show Chinese, error WARNING: "* * * * (1864) : : WARNING: Invalid UTF8 string passed to pango_layout_set_text ()"??

CodePudding user response:

In the GTK, the default form is utf-8 character encoding, which all shows the string, you need to use utf8 encoding to display properly, g_locale_from_utf8 ()/g_locale_to_utf8 () these two functions is the string in utf8 encoding format and local code conversion,
  • Related