(mm-inline-render-with-function): Use multibyte buffer;
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 29 Jun 2004 05:56:28 +0000 (05:56 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 29 Jun 2004 05:56:28 +0000 (05:56 +0000)
 decode html source by charset.

lisp/ChangeLog
lisp/mm-view.el

index 5bda3ba..dc650ea 100644 (file)
@@ -1,5 +1,8 @@
 2004-06-29  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * mm-view.el (mm-inline-render-with-function): Use multibyte
+       buffer; decode html source by charset.
+
        * mm-encode.el (mm-content-transfer-encoding-defaults): Doc fix.
 
        * mm-util.el (mm-mime-mule-charset-alist): Add the windows-1251
index 4a6d096..869c194 100644 (file)
        (buffer-string)))))
 
 (defun mm-inline-render-with-function (handle func &rest args)
-  (let ((source (mm-get-part handle)))
+  (let ((source (mm-get-part handle))
+       (charset (mail-content-type-get (mm-handle-type handle) 'charset)))
     (mm-insert-inline
      handle
-     (mm-with-unibyte-buffer
-       (insert source)
+     (mm-with-multibyte-buffer
+       (insert (if charset
+                  (mm-decode-string source charset)
+                source))
        (apply func args)
        (buffer-string)))))