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ÃâO *|* El niÃÂo canta una canciÃn

Where it needs to say: "El NiÃo canta una canciÃn" (I know, a stupid
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Ã:
> 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 = new StreamReader (file_name, 
>               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Ã:
> > Hi!
> > 
> > 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 'Ã'
> > (quoted a) appears like: Ã, 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 
> > 
> > Thanks!
-- 
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

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to