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]);
Both code snippets produce almost the desired output (A^°C instead of °C) with no run-time GTK warning; I will keep on studying this issue.
Thank you for your suggestions,
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