[Mono-list] Encoding & Decoding..

Pablo Fischer pablo@pablo.com.mx
Fri, 05 Dec 2003 17:55:59 -0600


Yeah.. we are talking about the same subject: Encoding, however, I'm not
using a file, I'm using a simple string to send it via xmlrpc to my
site.

For example, when I send messages with quoted words to my blog, they
appear like:
EL NI=C3=83=E2=80=98O *|* El ni=C3=83=C2=B1o canta una canci=C3=B3n

Where it needs to say: "El Ni=C3=B1o canta una canci=C3=B3n" (I know, a stu=
pid
test).

So, I'm not looking to decode/encode a file, I'm looking to
encode/decode strings :(, thanks anyway!

Pablo

El vie, 05-12-2003 a las 12:04, Carlos Alberto Cortez Guevara escribi=C3=B3=
:
> Hi,
>=20
> 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.
>=20
> In my case, I made up  a stream with this
>=20
> 	StreamReader reader =3D new StreamReader (file_name,=20
> 		new UTF7Encoding ());
>=20
> 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 ).
>=20
> Regards,
> Carlos.
>=20
> El vie, 05-12-2003 a las 14:23, Pablo Fischer escribi=C3=B3:
> > 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 '=C3=A1'
> > (quoted a) appears like: =C3=84, 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
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt