info-gnus-english
[Top][All Lists]
Advanced

[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: Pascal Bourguignon
Subject: Re: iso-8859-1 in outgoing messages in spite of UTF-8 environment
Date: Fri, 02 Feb 2007 15:36:20 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

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.


> 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)


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

Nobody can fix the economy.  Nobody can be trusted with their finger
on the button.  Nobody's perfect.  VOTE FOR NOBODY.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]