[Gtk-sharp-list] Some widgets and UTF8

Miguel de Icaza miguel at ximian.com
Sun Feb 11 13:31:32 EST 2007


Hello,

> 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 assumes the codepage based on the current locale.

So if your locale contains utf8, it will use utf8.   Otherwise as you
said, it will use things like Latin1

> mcs /debug /codepage:utf8 /out:test.exe Test.cs
> 
> Hope this helps,
> 
> -Brad
> 


More information about the Gtk-sharp-list mailing list