aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-09-12 17:14:25 +0000
committerDave Love2002-09-12 17:14:25 +0000
commitdd6478be6ac27039a3710260e00f6db79c262aed (patch)
treeee2edfca71de708c1d63293eac2c29a13bed6898
parent7fda10ab2d24cf8f630561732ea8291ffc15a7ec (diff)
downloademacs-dd6478be6ac27039a3710260e00f6db79c262aed.tar.gz
emacs-dd6478be6ac27039a3710260e00f6db79c262aed.zip
(Charset Translation): Fix description of process.
-rw-r--r--man/emacs-mime.texi48
1 files changed, 29 insertions, 19 deletions
diff --git a/man/emacs-mime.texi b/man/emacs-mime.texi
index 1f8d23ce470..90adeb196fd 100644
--- a/man/emacs-mime.texi
+++ b/man/emacs-mime.texi
@@ -18,7 +18,7 @@
18 18
19This file documents the Emacs MIME interface functionality. 19This file documents the Emacs MIME interface functionality.
20 20
21Copyright (C) 1998,99,2000 Free Software Foundation, Inc. 21Copyright (C) 1998,99,2000, 2002 Free Software Foundation, Inc.
22 22
23Permission is granted to copy, distribute and/or modify this document 23Permission is granted to copy, distribute and/or modify this document
24under the terms of the GNU Free Documentation License, Version 1.1 or 24under the terms of the GNU Free Documentation License, Version 1.1 or
@@ -47,7 +47,7 @@ license to the document, as described in section 6 of the license.
47@page 47@page
48 48
49@vskip 0pt plus 1filll 49@vskip 0pt plus 1filll
50Copyright @copyright{} 1998,99,2000 Free Software Foundation, Inc. 50Copyright @copyright{} 1998,99,2000, 2002 Free Software Foundation, Inc.
51 51
52Permission is granted to copy, distribute and/or modify this document 52Permission is granted to copy, distribute and/or modify this document
53under the terms of the GNU Free Documentation License, Version 1.1 or 53under the terms of the GNU Free Documentation License, Version 1.1 or
@@ -1264,7 +1264,9 @@ has been composed inside Emacs, an appropriate @sc{mime} charset has to
1264be chosen. 1264be chosen.
1265 1265
1266@vindex mail-parse-charset 1266@vindex mail-parse-charset
1267If you are running a non-Mule Emacs, this process is simple: if the part 1267@cindex unibyte Emacs
1268If you are running a non-Mule XEmacs, or Emacs in unibyte
1269mode@footnote{Deprecated!}, this process is simple: if the part
1268contains any non-@sc{ascii} (8-bit) characters, the @sc{mime} charset 1270contains any non-@sc{ascii} (8-bit) characters, the @sc{mime} charset
1269given by @code{mail-parse-charset} (a symbol) is used. (Never set this 1271given by @code{mail-parse-charset} (a symbol) is used. (Never set this
1270variable directly, though. If you want to change the default charset, 1272variable directly, though. If you want to change the default charset,
@@ -1274,23 +1276,31 @@ Variables, message, Message Manual}, for example.) If there are only
1274@sc{ascii} characters, the @sc{mime} charset @samp{US-ASCII} is used, of 1276@sc{ascii} characters, the @sc{mime} charset @samp{US-ASCII} is used, of
1275course. 1277course.
1276 1278
1277@cindex Mule 1279@cindex multibyte Emacs
1278@cindex UTF-8 1280@cindex @code{mime-charset} property
1279@cindex Unicode 1281In a normal (multibyte) Emacs session, a list of coding systems is
1282derived that can encode the message part's content and correspond to
1283MIME charsets (according to their @code{mime-charset} property). This
1284list is according to the normal priority rules and the highest priority
1285one is chosen to encode the part. If no such coding system can encode
1286the part's contents, they are split into several parts such that each
1287can be encoded with an appropriate coding system/@sc{mime}
1288charset.@footnote{The part can only be split at line boundaries,
1289though---if more than one @sc{mime} charset is required to encode a
1290single line, it is not possible to encode the part.} Note that this
1291procedure works with any correctly-defined coding systems, not just
1292built-in ones. Given a suitably-defined UTF-8 coding system---one
1293capable of encoding the Emacs charsets you use---it is not normally
1294necessary to split a part by charset.
1295
1280@vindex mm-mime-mule-charset-alist 1296@vindex mm-mime-mule-charset-alist
1281Things are slightly more complicated when running Emacs with Mule 1297@cindex XEmacs/Mule
1282support. In this case, a list of the Mule charsets used in the part is 1298It isn't possible to do this properly in XEmacs/Mule. Instead, a list
1283obtained, and the corresponding @sc{mime} charsets are determined. If 1299of the Mule charsets used in the part is obtained, and the
1284this results in a single @sc{mime} charset, this is used to encode the 1300corresponding @sc{mime} charsets are determined by lookup in
1285part. But if the resulting list of @sc{mime} charsets contains more 1301@code{mm-mime-mule-charset-alist}. If the list elements all
1286than one element, two things can happen: if it is possible to encode the 1302correspond to a single @sc{mime} charset, that is used to encode the
1287part via UTF-8, this charset is used. (For this, Emacs must support the 1303part. Otherwise, the part is split as above.
1288@code{utf-8} coding system, and the part must consist entirely of
1289characters which have Unicode counterparts.) If UTF-8 is not available,
1290the part is split into several, so that each one can be encoded with a
1291single @sc{mime} charset. The part can only be split at line
1292boundaries, though---if more than one @sc{mime} charset is required to
1293encode a single line, it is not possible to encode the part.
1294 1304
1295@node Conversion 1305@node Conversion
1296@section Conversion 1306@section Conversion