Tag Archives: vm

Sending non-ASCII text in emails with Emacs and VM

I use Emacs to do a lot of work, not only editing files. For example all my email reading and writing I do with Emacs, as well as reading Usenet newsgroups. For email I use VM (viewmail) rather than the standard RMAIL.

One problem that popped up when we got the Euro as a currency was that VM couldn’t deal properly with non-ASCII characters when sending email. When a mixture of different character sets was present in a message a Japanese coding was chosen that most email reader don’t understand. Because I wanted to send emails with the €-sign I cooked up some code to make this work. The code was inspired by similar code in Gnus, the Emacs Usenet reader. (Some people also use gnus for their email but I prefer VM for that.)