w3 might not recognize utf-8.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sun, 14 May 2000 00:42:26 +0000 (00:42 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sun, 14 May 2000 00:42:26 +0000 (00:42 +0000)
lisp/ChangeLog
lisp/mm-view.el

index 95a3638..322e948 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-13 20:41:10  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-view.el (mm-inline-text): w3 might not recognize utf-8.
+
 2000-05-13 16:49:41  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * webmail.el: Translate &nbsp; to SP.
index fe36cf6..216125b 100644 (file)
                    (and (boundp 'w3-meta-charset-content-type-regexp)
                         (re-search-forward
                          w3-meta-charset-content-type-regexp nil t)))
-               (setq charset (w3-coding-system-for-mime-charset 
-                              (buffer-substring-no-properties 
-                               (match-beginning 2) 
-                               (match-end 2)))))
+               (setq charset (or (w3-coding-system-for-mime-charset 
+                                  (buffer-substring-no-properties 
+                                   (match-beginning 2) 
+                                   (match-end 2)))
+                                 charset)))
            (delete-region (point-min) (point-max))
            (insert (mm-decode-string text charset))
            (save-window-excursion