Re: accent problem replying mails
0n Thu, Apr 02, 2009 at 12:21:53PM -0500, Kyle Wheeler wrote: >>in the .muttrc I have tried with different carset options: >>- set charset="iso-8859-1" >>- set charset="utf-8" >>- and with charset not defined. mmm ... i have set in my $HOME/.mutt/settings set charset=//TRANSLIT But i cant even remember what that means :( -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
Re: accent problem replying mails [SOLVED]
thanks :) I have solved the problem. The problem was that I was moving from another computer and I had imported all home. In the old machine the locale was: lang=es...@euro LANGUAGE=es_ES:es:en_GB:en LC_CTYPE="es...@euro" LC_NUMERIC="es...@euro" LC_TIME="es...@euro" LC_COLLATE="es...@euro" LC_MONETARY="es...@euro" LC_MESSAGES="es...@euro" LC_PAPER="es...@euro" LC_NAME="es...@euro" LC_ADDRESS="es...@euro" LC_TELEPHONE="es...@euro" LC_MEASUREMENT="es...@euro" LC_IDENTIFICATION="es...@euro" lc_all=es...@euro and it worked perfect. I don't know why in debian when you chosse a locale (in dpkg-reconfigure locales) it set LC_ALL to es...@euro if it is incorrect but this question is for others lists. But in the new computer I have set my locale to: $ locale LANG=ca_ES.UTF-8 LANGUAGE=ca:es:en LC_CTYPE="ca_ES.UTF-8" LC_NUMERIC="ca_ES.UTF-8" LC_TIME="ca_ES.UTF-8" LC_COLLATE="ca_ES.UTF-8" LC_MONETARY="ca_ES.UTF-8" LC_MESSAGES="ca_ES.UTF-8" LC_PAPER="ca_ES.UTF-8" LC_NAME="ca_ES.UTF-8" LC_ADDRESS="ca_ES.UTF-8" LC_TELEPHONE="ca_ES.UTF-8" LC_MEASUREMENT="ca_ES.UTF-8" LC_IDENTIFICATION="ca_ES.UTF-8" LC_ALL= well when I was in mutt the charset is utf-8: if I execute :set &charset ?charset charset=utf-8 but when I reply an email vim was in iso-8859-15 :set fenc fileencodiong=iso-8850-15 I didn't want that. I fixed the fileencondig options that vim can use utf8 with: set fileencodings=utf-8 and reply the email again. Now vim give me an error in the line 13! It is in the signature!! The signature file was imported from the old system and it was saved in iso-8859-15, when vim start to reply an email it detect the iso-8859-15 format of signature and it create a iso-8859-15 file for the reply and the characters of original email where bad intepreted. I have saved the .signature file with utf-8 and I have set the fileencodings of .vimrc set fileencodings=utf-8,iso-8859-15,ucs-bom,cp950,gb18030,default,latin1 with that seems that interpret the iso-8850-15 for the old files and the utf-8 for the new ones Thanks to all :) Roger On Fri, Apr 3, 2009 at 4:41 PM, Kyle Wheeler wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Friday, April 3 at 09:24 AM, quoth Roger Casaponsa: >>letter in the original mail -->> letter when editing a reply >>ó -->> ó >>ò -->> ò >>à -->> "à " (with a space) >>' -->> â<80><99> > > H. Those look like UTF-8 characters that are being misunderstood > by your editor. > > My guess is that your locale isn't specifying a characterset, even if > you think it is. Mutt should ONLY provide message files to your editor > (vim) in the characterset specified in the locale. > >>es_ES >>es...@euro >>es_ES.iso88591 >>es_es.iso885...@euro >>es_ES.utf8 > >>I think that es...@euro is the same that es_ES.ISO8859-15 because >>when I choose wich locales I want this is displayed like: es...@euro >>ISO-8859-15 > > Unfortunately, I'm pretty sure that's incorrect. Locale names use the > following syntax: > > language[_territory][.codese...@modifier] > > The "@euro" is a modifier that is primarily used for LC_MONETARY > issues, to indicate that there are multiple ways that monetary values > can be formatted (the old way and the euro way). It DOES NOT select a > character set. That's why you have both es...@euro *and* > es_es.iso885...@euro available. Make sense? > > Now, I read up a little bit on this (here: > http://www.open-std.org/jtc1/sc22/wg20/docs/n573-Euro_Handling.pdf), > and here's something I discovered: > > Note that the @modifier cannot be assigned to LC_ALL or LANG. It > is intended to modify a category (or categories) individually. > > So setting LANG to be es...@euro is completely incorrect! I didn't > know that. > > Try setting your LANG to be es_ES.utf8 and see what happens. I bet > that will fix it for you. You MAY want to set LC_MONETARY to be > es...@euro or something similar, but you shouldn't use the @euro > modifier in LANG or in LC_ALL. Does that make sense? > > ~Kyle > - -- > As we enjoy great Advantages from the Inventions of others we should > be glad of an Opportunity to serve others by any Invention of ours, > and this we should do freely and generously. > -- Benjamin Franklin > -BEGIN PGP SIGNATURE- > Comment: Thank you for using encryption! > > iEYEARECAAYFAknWIDAACgkQBkIOoMqOI16llQCdFu8DUXPja8WLZ3/Qg1BgvorS > gGkAnRbry6WyY1QHxOJqaVIJ1luT5tB9 > =ae+D > -END PGP SIGNATURE- >
Re: looking for simple "rss to .signature"-script
Hi, > I'm looking for a way to integrate the latest post on my blog into my > .signature-file. I remember having come across something like this > months ago, but can't seem to find it now. Maybe you know a simple > solution? The result should look something like my manual sig below. I recently discovered a tool called xmlstarlet which lets you extract stuff from xml data. Maybe you could use something like this on your blog's rss feed: $ curl -s http://michaelmaurer.net/rss.xml | \ xmlstarlet sel -t -m /rss/channel/item -v link -n | \ head -n1 > ~/.signature Marc
Re: accent problem replying mails
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday, April 3 at 09:24 AM, quoth Roger Casaponsa: >letter in the original mail -->> letter when editing a reply >ó -->> ó >ò -->> ò >à -->> "à " (with a space) >' -->> â<80><99> H. Those look like UTF-8 characters that are being misunderstood by your editor. My guess is that your locale isn't specifying a characterset, even if you think it is. Mutt should ONLY provide message files to your editor (vim) in the characterset specified in the locale. >es_ES >es...@euro >es_ES.iso88591 >es_es.iso885...@euro >es_ES.utf8 >I think that es...@euro is the same that es_ES.ISO8859-15 because >when I choose wich locales I want this is displayed like: es...@euro >ISO-8859-15 Unfortunately, I'm pretty sure that's incorrect. Locale names use the following syntax: language[_territory][.codese...@modifier] The "@euro" is a modifier that is primarily used for LC_MONETARY issues, to indicate that there are multiple ways that monetary values can be formatted (the old way and the euro way). It DOES NOT select a character set. That's why you have both es...@euro *and* es_es.iso885...@euro available. Make sense? Now, I read up a little bit on this (here: http://www.open-std.org/jtc1/sc22/wg20/docs/n573-Euro_Handling.pdf), and here's something I discovered: Note that the @modifier cannot be assigned to LC_ALL or LANG. It is intended to modify a category (or categories) individually. So setting LANG to be es...@euro is completely incorrect! I didn't know that. Try setting your LANG to be es_ES.utf8 and see what happens. I bet that will fix it for you. You MAY want to set LC_MONETARY to be es...@euro or something similar, but you shouldn't use the @euro modifier in LANG or in LC_ALL. Does that make sense? ~Kyle - -- As we enjoy great Advantages from the Inventions of others we should be glad of an Opportunity to serve others by any Invention of ours, and this we should do freely and generously. -- Benjamin Franklin -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAknWIDAACgkQBkIOoMqOI16llQCdFu8DUXPja8WLZ3/Qg1BgvorS gGkAnRbry6WyY1QHxOJqaVIJ1luT5tB9 =ae+D -END PGP SIGNATURE-
Re: accent problem replying mails
On Fri, 03 Apr 2009, Roger Casaponsa wrote: > I think that es...@euro is the same that es_ES.ISO8859-15 because when > I choose wich locales I want this is displayed like: es...@euro > ISO-8859-15 If it was related to vim, you may test when replying with vim by typing :set fenc this should give the file encoding used by vim for that reply and :set fencs this should give a list of encodings used by vim for autodetect, try putting iso-8859-15 after the utf-8 or some other positions set fileencodings=ucs-bom,utf-8,cp950,iso-8859-9,gb18030,default,latin1 and add that in your .vimrc. HTH -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩180 王維 積雨輞川莊作 積雨空林煙火遲 蒸藜炊黍餉東菑 漠漠水田飛白鷺 陰陰夏木囀黃鸝 山中習靜觀朝槿 松下清齋折露葵 野老與人爭席罷 海鷗何事更相疑
Re: accent problem replying mails
hello, thanks for the fast reply :) >>but when I reply it, in the editor, they are changed to rares >>characters. > > "rares"? You mean "invalid" or "incorrect" characters? sorry my english is not so good... with rare I mean invalid and incorrect. Here is some examples. letter in the original mail -->> letter when editing a reply ó -->> ó ò -->> ò à -->> "à " (with a space) ' -->> â<80><99> > > I assume your vim was compiled with support for multi-byte characters? yes, when I do a vim --version it says: "... +multi_byte ..." > > It sounds like a locale problem. > >>my system locales are: >> >>lang=es...@euro > > Is that a valid locale on your system? When you run `locale -a`, is > es...@euro in the list? If it's not, then your LANG setting is > incorrect. yes it is: :~# locale -a C ca...@euro ca_es.iso885...@euro ca_ES.utf8 en_US.iso885915 en_US.utf8 es_ES es...@euro es_ES.iso88591 es_es.iso885...@euro es_ES.utf8 POSIX spanish > > I'm guessing that you probably either want to set LANG to > es_ES.ISO8859-15 or es_ES.UTF-8, depending on the output of `locale > - -a`. I think that es...@euro is the same that es_ES.ISO8859-15 because when I choose wich locales I want this is displayed like: es...@euro ISO-8859-15 > >>in the .muttrc I have tried with different carset options: >>- set charset="iso-8859-1" >>- set charset="utf-8" >>- and with charset not defined. > > DO NOT set the charset yourself. It's *almost* always a bad idea > (translation: if you don't know what you're doing, don't fuss with > it). heheh yes this is a good advise :) Roger