From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50523 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: utf-8 for decoding mails, but composing eeventually with iso-latin-9 Date: Mon, 03 Mar 2003 18:54:20 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046714100 21309 80.91.224.249 (3 Mar 2003 17:55:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2003 17:55:00 +0000 (UTC) Cc: Oliver Scholz Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18pu9T-0005XX-00 for ; Mon, 03 Mar 2003 18:54:59 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18pu9E-0001DF-00; Mon, 03 Mar 2003 11:54:44 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 03 Mar 2003 11:55:45 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA28219 for ; Mon, 3 Mar 2003 11:55:32 -0600 (CST) Original-Received: (qmail 2532 invoked by alias); 3 Mar 2003 17:54:27 -0000 Original-Received: (qmail 2527 invoked from network); 3 Mar 2003 17:54:27 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by 66.230.238.6 with SMTP; 3 Mar 2003 17:54:27 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.7/8.12.7) with ESMTP id h23HsKqt010576 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 3 Mar 2003 18:54:20 +0100 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Payment: hashcash 1.1 0:030303:ding@gnus.org:52afc6e514e554ee X-Hashcash: 0:030303:ding@gnus.org:52afc6e514e554ee X-Payment: hashcash 1.1 0:030303:alkibiades@gmx.de:e2c86166aa26c651 X-Hashcash: 0:030303:alkibiades@gmx.de:e2c86166aa26c651 In-Reply-To: (Christoph Conrad's message of "Mon, 03 Mar 2003 17:55:54 +0100") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50523 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50523 Christoph Conrad writes: > Hi, > > Oliver Scholz has helped me using utf-8 for displaying / writing utf-8 > mails. For several reasons i want to be able (a) to override the utf-8 > default to something like iso-latin-9, e.g. when writing to people > using older mailclients. On the other side i want to (b) have > iso-latin-9 as standard encoding for files, not! utf-8. > > I achieved (b) with > > ,----[ .emacs.el ] > | (prefer-coding-system 'utf-8) > | (setq default-buffer-file-coding-system > | (coding-system-change-eol-conversion > | 'iso-latin-9 ;; default-buffer-file-coding-system > | nil)) > `---- > > Now: How do i achive (a)? Put <#part charset=iso-8859-9> before the text. OTOH, you could try '(mm-coding-system-priorities (quote (iso-latin-1 iso-latin-9))) instead of all what you are doing now. Then you will compose in the systems' locale but it will be downgraded to latin-1 if possible, or latin-9 if possible. No need to specify things manually. I believe that most europeans are happy with a rule that chosed ASCII if possible, then the lowest X that makes ISO-8859-X work (which includes eventually choosing ISO-8859-15 for euro signs), and finally UTF-8. I run emacs in an UTF-8 locale and use the above setting, so I get this algorithm.