[Gtk-sharp-list] Some widgets and UTF8

Petteri Kautonen petteri.kautonen at pp.inet.fi
Tue Feb 6 10:45:29 EST 2007


Thanks,
It helped! There must be some weird conversion malfunctions on the way.

int int_c = 0x00f6;
char char_c = Convert.ToChar(int_c);
//this shows fine          
Gtk.ToolButton TestToolButton = new ToolButton(Im, "" + char_c);

//this does not
string ReadFromUTF8EncodedXmlFile ...
Gtk.ToolButton TestToolButton = new ToolButton(Im, 
ReadFromUTF8EncodedXmlFile);

//nor does this
string TestString = "ö";
Gtk.ToolButton TestToolButton = new ToolButton(Im, TestString);

Dr. McArrow wrote:
> hi!
> try this
> int int_c = 0x00f6;
> char char_c = Convert.ToChar(c);
> Console.WriteLine(char_c);


More information about the Gtk-sharp-list mailing list