Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
To: info-gnus-english@gnu.org
Subject: Re: iso-8859-1 in outgoing messages in spite of UTF-8 environment
Date: Fri, 02 Feb 2007 15:36:20 +0100	[thread overview]
Message-ID: <87ps8svd7f.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: <jxu64akis76.fsf@mi061052.klientdrift.uib.no>

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	other threads:[~2007-02-02 14:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-02 13:50 Stein Arild Strømme
2007-02-02 14:36 ` Pascal Bourguignon [this message]
2007-02-02 14:53   ` Stein Arild Strømme
2007-02-02 23:52 ` Kai Großjohann
     [not found] ` <mailman.3923.1170460511.2155.info-gnus-english@gnu.org>
2007-02-07  7:32   ` Stein Arild Strømme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ps8svd7f.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).