[Gtk-sharp-list] Gtk# and german "Umlaut" characters
Helge Lenuweit
helge@lenuweit.net
Wed, 22 Sep 2004 19:11:30 +0000
Hi,
I have recently started to dive into UI design with Gtk#, coming from
the System.Windows.Forms corner of the world. Although Gtk# being a
powerful environment, issues with displaying german "Umlaut" characters
(ä,ö,ü, also ß) turn things pretty annoying:
Passing a standard C# string object with "Umlauts" to a Gtk# widget will
result in an empty display label or the string being cut right before
the character in question. I imagine this has to do with the GTK
subsystem misinterpreting unicode... This can be solved by converting
the string encoding from UTF8 to Default, which helped on both
Linux/Mono and Windows.
This leaves me with the following questions:
- are there any caveats with my workaround?
- if this is the way to go, shouldn't such conversion be done automatically?
By the way, I used VS2003 and the new Gtk#/Windows installer - might
this be causing the problem?
Thanks for your thoughts,
Helge