[Gtk-sharp-list] Some widgets and UTF8

Brad Taylor brad at getcoded.net
Tue Feb 6 10:55:21 EST 2007


Hi,

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

If you're going to do this, you need to let mcs know that your file is
UTF8 encoded.

By default, mcs assumes input files are Latin-1 encoded and will not
parse utf8 characters correctly (unless you have a byte-order marker at
the beginning of the file, which it doesn't seem your file has).
However, you can pass /codepage:utf8 to get mcs to recognize your file
as UTF-8 encoded like so:

mcs /debug /codepage:utf8 /out:test.exe Test.cs

Hope this helps,

-Brad

-- 
Brad Taylor
Genome Software LLC
http://www.getcoded.net



More information about the Gtk-sharp-list mailing list