PangoLayout and UTF8-strings

Hi all,

I'm writing a graphical applet using gtk+2.2.4, but cannot avoid following warning:

** (setrot:7913): WARNING **: Invalid UTF8 string passed to pango_layout_set_text()

generated, in following code snippet, by pango_layout_set_text call:

      value[i] = 750;
      g_sprintf (label, "%d °C", value[i]);
      pango_layout_set_text (pl, label, 8);
      points[0].x -= 45;
      points[0].y -= 7;
gdk_draw_layout_with_colors (draw->window, gc, points[0].x, points[0].y, pl, grigio, NULL);

this code produces the desired output under windows ("750 °C") but only an incomplete output under linux ("750 "). Any idea? Any suggestion about finding documentation on UTF8-strings?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]