[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [address@hidden: quoted-printable-decode-region: must reread file to
From: |
Kenichi Handa |
Subject: |
Re: [address@hidden: quoted-printable-decode-region: must reread file to see Chinese] |
Date: |
Wed, 13 Jun 2001 16:41:23 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.0.104 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
Richard Stallman <rms@gnu.org> writes:
> Could you think about this, please?
Ok.
> ------- Start of forwarded message -------
> To: gnu-emacs-bug@moderators.isc.org
> From: Dan Jacobson <jidanni@kimo.FiXcomTHiS.tw>
> Newsgroups: gnu.emacs.bug
> Subject: quoted-printable-decode-region: must reread file to see Chinese
> Organization: Taiwan
> Sender: bug-gnu-emacs-admin@gnu.org
> Date: 11 Jun 2001 17:52:51 +0800
> I used quoted-printable-decode-region and the result appears as
> \232\121\333 etc. octal mess. One must do C-x C-s C-x C-v RET to
> be able to see the Chinese corretly.
quoted-printable-decode-region is usually for decoding data
of quoted-printable format into the original byte sequence.
That byte sequence may be a text encoded somehow (in your
case, perhaps, big5 encoding), and thus should be decoded
again.
The docstring or quoted-printable-decode-region says as below:
----------------------------------------------------------------------
(quoted-printable-decode-region FROM TO &optional CODING-SYSTEM)
Decode quoted-printable in the region between FROM and TO, per RFC 2045.
If CODING-SYSTEM is non-nil, decode bytes into characters with that
coding-system.
----------------------------------------------------------------------
So, doing something like this will work:
ESC : (quoted-printable-decode-region (point-min) (point-max) 'big5)
For the moment, there's no way to supply CODING-SYSTEM
interactively to that function. Perhaps, we should modify
this function so that it respect
universal-coding-system-argument, then one can do:
C-x RET c big5 RET M-x quoted-printable-decode-region RET
---
Ken'ichi HANDA
handa@etl.go.jp
- Re: [address@hidden: quoted-printable-decode-region: must reread file to see Chinese],
Kenichi Handa <=