El Wed, Jul 27, 2005 at 02:45:27PM +0300, Moshe Kaminsky me dec�a: > > i got this in my ~/.vimrc: > > set encoding=utf-8 > > set fileencoding=utf-8 > > Please try removing this setting, then check the value after vim reads > the file (when you reply). Vim sets this option when editing an existing > file according to what it thinks the encoding of the file to be. Also, > you might want to try something like
A-jh�! I remove those settings from mi ~/.vimrc and when replying to a mail that contains utf-8 (some mail that i sent myself) i get: encoding=utf-8 but: fileencoding=latin1 So, mutt is showing correctly an utf-8 mail, but when it creates the quoted mail for reply in /tmp is giving vim a recoded file. I think... is that? So, what's happening here? > :e ++enc=utf-8 <file> don't know how to use this from the call from mutt > This will force vim to read this file as a utf-8 file. Also, what is the > value of 'fileencodings'? fileencodings=ucs-bom,utf-8,latin1,default i already have tried with fileencodings=utf-8 only and the problem stays. > > i got this in my ~/.muttrc: > > set send_charset="us-ascii:utf-8" > > Might want to try just "utf-8", but I don't think it will matter. Oh, no, i already tried it, i put before: set send_charset="utf-8" set send_charset="us-ascii:iso-8859-1:utf-8" and the problem stays too. > > Ok, that's all concerning configuration. Now i tell you how the > > problem works: in mutt, if i compose a mail from scratch, without > > anything, not even signature, and put a LATIN SMALL LETTER A WITH > > ACUTE (got that name from unicode chart), and then send it to myself, > > and to a friend, my friend sees it ok and i too. > > > > But if now i reply to this same mail, when vim comes with the quoted > > text that mutt passes to it y see garbage. > > Can you include one of this characters in your reply? Yes! In the next line a LATIN SMALL LETTER A WITH ACUTE: � But you should see that ok, now if i reply to that message, when it reaches me through the list, i will send this stuff: á which seems to be (not sure about this) the codification of the two bytes of the LATIN SMALL LETTER A WITH ACUTE but un latin1. Why is that? I don't know. > > I investigate what was in the archives, so i saved a copy (using 'C' > > command from mutt) of the first message (the one i receive from me) > > and file says: 'UTF-8 Unicode mail text', check what's inside with > > hexedit and see that LATIN SMALL LETTER A WITH ACUTE is encoded with > > this hex: C3 A1 (which is not 00 E1 from unicode chart from > > http://www.unicode.org/charts/) > > I think this is just the way these characters are represented in utf-8. Yes it is. I were looking at the worng charts, the same was said to me in the vim list. -- Fernando Canizo - LUGMen: www.lugmen.org.ar - A8N: a8n.lugmen.org.ar Jacquin's Postulate on Democratic Government: No man's life, liberty, or property are safe while the legislature is in session. -- [email protected] mailing list

