[MonoDevelop] string charset bug ?

Rafael Teixeira Rafael Teixeira <monoman@gmail.com>
Wed, 24 Nov 2004 17:41:45 -0200


System.Console.Write..() will call IO routines that marshal from
string internal UTF-16 representation to utf-8 and then syscalls to
system-IO that should follow the LANG environment variable setting.

Try experimenting with LANG (I keep mine as en_US.UTF-8, or something
like that, I=B4m in windows just now)


On Wed, 24 Nov 2004 20:27:14 +0100, T=F6r=F6k G=E1bor <tori@alfanet.hu> wro=
te:
>=20
> I also tried with codepage:utf8, but no change. My source was utf8 encode=
d.
> It seems that the compiler works well, the jit compiler does something
> wrong.
>=20
> Is there an option to mono which encoding should be used?
>=20
> Gabor Torok
>=20
>=20
>=20
> > -----Original Message-----
> > From: monodevelop-list-admin@lists.ximian.com [mailto:monodevelop-list-
> > admin@lists.ximian.com] On Behalf Of Rafael Teixeira
> > Sent: Wednesday, November 24, 2004 6:43 PM
> > To: T=F6r=F6k G=E1bor
> > Cc: monodevelop-list@lists.ximian.com
> > Subject: Re: [MonoDevelop] string charset bug ?
> >
> > Probably I'm still breaking up from sleep :( .
> >
> > As you are in Debian sid, csc is just some alias to mcs, so use
> > /codepage:utf8.
> >
> > Cheers,
> >
> >
> > On Wed, 24 Nov 2004 15:39:34 -0200, Rafael Teixeira <monoman@gmail.com>
> > wrote:
> > > To make it more clear: the /codepage:utf8 is a mcs specific option.
> > >
> > >
> > >
> > >
> > > On Wed, 24 Nov 2004 15:38:15 -0200, Rafael Teixeira <monoman@gmail.co=
m>
> > wrote:
> > > > In Which encoding did you save your source file?
> > > >
> > > > It seems like you saved in UTF-8 without the markers.
> > > >
> > > > So you need to pass the /codepage:utf8 option to compile that file.
> > > > For csc you'll need to save it in UTF-8 with markers or in the
> > > > windows-1252 encoding, for csc to try to autodetect correctly.
> > > >
> > > > Hope it helps,
> > > >
> > > >
> > > >
> > > >
> > > > On Tue, 23 Nov 2004 23:54:46 +0100, T=F6r=F6k G=E1bor <tori@alfanet=
.hu>
> > wrote:
> > > > >
> > > > > Hi!
> > > > >
> > > > > I tried a hello world application on debian "sid" with mono 1.0.2=
.
> > > > >
> > > > > The program:
> > > > > ---
> > > > > public class HelloWorld
> > > > > {
> > > > >         static void Main()
> > > > >         {
> > > > >                 System.Console.WriteLine("Hello World! =E1rv=EDzf=
=FAr=F3
> > > > > t=FCk=F6rf=FAr=F3g=E9p =C1RV=CDZF=DAR=D3T=DCK=D6RF=DAR=D3G=C9P");
> > > > >         }
> > > > > }
> > > > > ---
> > > > > The output is: Hello World! ?rv?zf?r? t?k?rf?r?g?p
> > ?RV?ZF?R?T?K?RF?R?G?P
> > > > >
> > > > > I found some bugs like this on bugzilla, but they seemd to have b=
een
> > solved
> > > > > already.
> > > > >
> > > > > I compiled my program with "mcs" and also with "csc", the result =
was
> > the
> > > > > same. The program worked correct on windows, and worked incorrect=
 on
> > linux.
> > > > >
> > > > > I tried a little asp.net application also with mono, and the resu=
lt
> > was the
> > > > > same. There was "?" instead of the hungarian characters.
> > > > >
> > > > > What can be wrong? Can you help me?
> > > > >
> > > > > Thank you!
> > > > >
> > > > > Gabor Torok
> > > > >
> > > > > _______________________________________________
> > > > > Monodevelop-list mailing list
> > > > > Monodevelop-list@lists.ximian.com
> > > > > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> > > > >
> > > >
> > > >
> > > > --
> > > > Rafael "Monoman" Teixeira
> > > > ---------------------------------------
> > > > Just the 'crazy' me in a sane world, or would it be the reverse? I
> > dunno...
> > > >
> > >
> > > --
> > > Rafael "Monoman" Teixeira
> > > ---------------------------------------
> > > Just the 'crazy' me in a sane world, or would it be the reverse? I
> > dunno...
> > >
> >
> >
> > --
> > Rafael "Monoman" Teixeira
> > ---------------------------------------
> > Just the 'crazy' me in a sane world, or would it be the reverse? I
> > dunno...
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
>=20
>=20


--=20
Rafael "Monoman" Teixeira
---------------------------------------
Just the 'crazy' me in a sane world, or would it be the reverse? I dunno...