[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: iso-8859-1 in outgoing messages in spite of UTF-8 environment
From: |
Stein Arild Strømme |
Subject: |
Re: iso-8859-1 in outgoing messages in spite of UTF-8 environment |
Date: |
Fri, 02 Feb 2007 15:53:55 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
[Pascal Bourguignon]
| stromme@math.uib.no (Stein Arild Strømme) writes:
|
| > I have
| >
| > (set-language-environment 'UTF-8)
|
| emacs lisp is case sensitive (like Common Lisp, but unlike Common
| Lisp, the emacs lisp reader doesn't upcase everything on read by
| default). Therefore
|
| (set-language-environment 'UTF-8)
|
| is not the same as
|
| (set-language-environment 'utf-8)
|
| and I don't know whether
|
| (set-language-environment 'UTF-8)
|
| will do anything good at all.
I'm not claiming anything about the goodness of it, but it does work :-)
| > How can I still get message-mode to use iso-8859-1 in outgoing
| > messages? (I get complaints about UTF-8 email.) Looking at the info
| > nodes for Message is quite confusing on this, and the things I have
| > tried do no seem to work, things like
| >
| > (setq mm-content-transfer-encoding-defaults '(iso-8859-1))
| > (setq mm-body-charset-encoding-alist '(iso-8859-1 . 8bit))
| > (setq message-posting-charset 'iso-8859-1)
| >
| > I have these variables:
| >
| > message-default-charset is a variable defined in `message.el'.
| > Its value is iso-8859-1
| >
| > message-posting-charset is a variable defined in `message.el'.
| > Its value is iso-8859-1
| >
| > Grateful for any hints.
|
|
| In addition, you might add hooks to set the buffer encoding.
|
| (defun mail-meat () (set-buffer-file-coding-system 'iso-8859-1))
| (add-hook 'mail-setup-hook 'mail-meat)
OK, I tried this (with message-setup-hook instead), and this does
indeed set the message composing buffer to iso-8859-1 (as read off
from the mode line). However, when I send the message using C-c C-c,
it still turns into utf-8.
SA
--
Stein Arild Strømme +47 55584825, +47 95801887
Universitetet i Bergen Fax: +47 55589672
Matematisk institutt, UiB http://math.uib.no/stromme/
Johs Brunsg 12, N-5008 BERGEN stromme@math.uib.no