Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: detecting encoding for Japanese
Date: Tue, 03 Sep 2002 15:19:19 +0900	[thread overview]
Message-ID: <yotlbs7f4mtz.fsf@jpl.org> (raw)
In-Reply-To: <yotlofbfx217.fsf@jpl.org>

I'm sorry to bother you so many times.

>>>>> In <yotlofbfx217.fsf@jpl.org>
>>>>>	Katsumi Yamaoka <yamaoka@jpl.org> wrote:

> Maybe the following value is much better(?):

> (get-language-info current-language-environment 'coding-priority)

I noticed the form may not provide a good value.  If a user loads
the jisx0213 module which is included in the Mule-UCS package,
priority will be given to iso-2022-jp-3 or euc-jisx0213.
Probably it is not related to the system-type:

emacs-21.2 -batch -q -no-site-file

(load "jisx0213")
(set-language-environment "Japanese")
(get-language-info current-language-environment coding-priority)
 => (iso-2022-jp-3-compatible utf-8 utf-16-le utf-16-be
     euc-jisx0213 japanese-shift-jisx0213 iso-2022-jp-2)

(require 'mm-util)
(let ((default-enable-multibyte-characters t)
      (mm-coding-system-priorities nil))
  (with-temp-buffer
    (insert "あいうえお")
    (mm-find-mime-charset-region (point-min) (point-max))))
 => (euc-jisx0213)

After all, it is the best to adopt the way which you wrote.

(defcustom mm-coding-system-priorities
  (cond ((string-= current-language-environment "Japanese")
	 '(iso-2022-jp iso-2022-jp-2 japanese-shift-jis utf-8)))
  "Preferred coding systems for encoding outgoing mails....")
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



  reply	other threads:[~2002-09-03  6:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-29  5:48 Hal Snyder
2002-08-29 10:00 ` Kai Großjohann
2002-08-29 12:04 ` Simon Josefsson
2002-08-29 14:08   ` Hal Snyder
2002-08-29 16:01     ` Simon Josefsson
2002-08-29 16:24       ` Hal Snyder
2002-08-29 16:59         ` Kai Großjohann
2002-08-30  0:05           ` Katsumi Yamaoka
2002-08-30 12:23             ` Kai Großjohann
2002-09-02 12:16               ` Katsumi Yamaoka
2002-09-02 17:31                 ` Kai Großjohann
2002-09-02 22:38                   ` Katsumi Yamaoka
2002-09-03  1:52                     ` Katsumi Yamaoka
2002-09-03  2:03                       ` Katsumi Yamaoka
2002-09-03  6:19                         ` Katsumi Yamaoka [this message]
2002-09-03  6:43                           ` Katsumi Yamaoka
2002-09-03 21:43                   ` Hal Snyder
2002-09-03 22:09                     ` Kai Großjohann
2002-08-30 10:43         ` Simon Josefsson
2002-08-30 12:25           ` Kai Großjohann
2002-08-30 22:58           ` Hal Snyder
2002-09-11 10:40           ` Yoshiki Hayashi

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=yotlbs7f4mtz.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.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).