[java-gnome-hackers] String encoding | showAll() | ButtonBox example
Brought to you by:
afcowie
|
From: Mark H. <mh...@ti...> - 2002-08-17 09:53:23
|
hi, I've been working on an example app for the ButtonBoxes: /src/examples/gtk/buttonbox/ButtonBoxes.java (I have implemented gtk Frame btw) The main problem seems to be with string encodings.=20 The button box example gives the warnings: ** (java-gnome:14365): WARNING **: Invalid UTF8 string passed to pango_layout_set_text() In my code, I have been using String.getBytes() with no encoding argument. I guess this is wrong. I have tried a few examples and read through the gtk docs, but have been unable to determine what should be passed to the getBytes method.=20 This seems to affect all classes which pass Strings to native methods. ++ All widgets seem to require either implicit show() calls or calls to showAll() of their direct parent. This seems strange, IMHO. --=20 +----------------------------------------------+ | Mark Howard cam.ac.uk mh344@ | | http://www.tildemh.com tildemh.com mh@ | +----------------------------------------------+ |