[Gtk-sharp-list] Problem with Gnome.About

Miguel de Icaza miguel@ximian.com
Fri, 22 Oct 2004 12:54:26 -0400


Hello,

> Sounds familiar, I'm seeing this too with german "Umlaut" characters,=20
> like =E4, =F6, =FC. There were several discussions going on here about th=
is=20
> issue. As far as I have caught up the current state, a bug report is=20
> being prepared. In the meantime, I worked around this by converting each=20
> label string using a helper method:
>=20
> public string DisplayString(string InputString) {
>  byte[] arrItemText =3D Encoding.UTF8.GetBytes(InputString);
>  return Encoding.Default.GetString(arrItemText); =20
> }

This is certainly part of the problem.

The compiler defaults to processing input files in latin-1, so if your
sources contain code in utf8, you should compile them like this:

	mcs -codepage:utf8 source.cs

Miguel