mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 12:57:34 +00:00
gnus-article-html: Decode contents by charset.
This commit is contained in:
parent
b89666afd2
commit
da43765da1
2 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2010-09-01 Katsumi Yamaoka <yamaoka@jpl.org>
|
||||
|
||||
* gnus-html.el (gnus-article-html): Decode contents by charset.
|
||||
|
||||
2010-09-01 Katsumi Yamaoka <yamaoka@jpl.org>
|
||||
|
||||
* gnus-html.el (gnus-html-cache-directory, gnus-html-cache-size)
|
||||
|
|
|
|||
|
|
@ -66,7 +66,13 @@
|
|||
(let* ((coding-system-for-read 'utf-8)
|
||||
(coding-system-for-write 'utf-8)
|
||||
(default-process-coding-system
|
||||
(cons coding-system-for-read coding-system-for-write)))
|
||||
(cons coding-system-for-read coding-system-for-write))
|
||||
(charset (mail-content-type-get (mm-handle-type handle)
|
||||
'charset)))
|
||||
(when (and charset
|
||||
(setq charset (mm-charset-to-coding-system charset))
|
||||
(not (eq charset 'ascii)))
|
||||
(mm-decode-coding-region (point-min) (point-max) charset))
|
||||
(call-process-region (point-min) (point-max)
|
||||
"w3m"
|
||||
nil article-buffer nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue