[Mono-list] Encoding & Decoding..

Carlos Alberto Cortez Guevara carlos@unixmexico.org
Fri, 05 Dec 2003 12:04:56 -0600


Hi,

I don't know if I catched your question. If I'm not wrong, you want
support for characters that are recognized by the stream. Sometime ago I
had the same problem, and only had to spcify it when you create the
stream object.

In my case, I made up  a stream with this

	StreamReader reader =3D new StreamReader (file_name,=20
		new UTF7Encoding ());

With this, the input uses another encoding, ovveriding the default one.
Maybe you will have to check if UTF7Encoding or UTF8Encoding is the best
for you (Note that I haven't used XML in Mono too much ).

Regards,
Carlos.

El vie, 05-12-2003 a las 14:23, Pablo Fischer escribi=F3:
> Hi!
>=20
> Well I have a another problem, When I send messages to my blog (via
> xmlrpc) I receive them in a strange encoding.. for example que '=E1'
> (quoted a) appears like: =C4, strange.. So, somebody knows how to do this=
?
> I found that using Text.Encoding.. but I dont understand very well and
> the examples that I have are from reading a file, I just want to Encode
> a string=20
>=20
> Thanks!
--=20
--------------------------------------------------
/* The definition of myself */
using Cortez;
using GeniusIntelligence;

public class Carlos : Human, IGenius, ILinuxUser {

	static void Main () {
		Me.Think();
	}

}

--------------------------------------------------