Re: PangoLayout and UTF8-strings



On Friday 18 June 2004 16:18, Carlo wrote:

       g_sprintf (label, "%d °C", value[i]);

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?

Try 

  g_sprintf (label, "%d \342\204\203", value[i]);

or

  g_sprintf (label, "%d \302\260C", value[i]);


gucharmap is a great tool finding UTF-8 codes.


There's some info about Gtk2 and UTF-8 in:

  http://developer.gnome.org/dotplan/porting/ar01s10.html

Cheers
 -Tim



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