[Gtk-sharp-list] Invalid UTF8 string

Gonzalo Paniagua Javier gonzalo@ximian.com
Sun, 22 Feb 2004 19:25:23 +0100


El dom, 22-02-2004 a las 18:46, Tiago Lima escribió:
> That is strange, because I tried an example and it gives me the same 
> warning... ? For example, doing this... 
> 
> 	protected void OnKeyPress(object sender, KeyPressEventArgs args)
> 	{
> 		_pangoLayout.SetText("text is : " + (char)args.Event.keyval);
> 	}

Ah, ok. Then try:
_pangoLayout.SetText("text is : " + (char) (Gdk.Keyval.ToUnicode
(args.Event.keyval));

-Gonzalo