[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: why Chinese just shown in byte codes?



Katsumi Yamaoka wrote:
[...]
> If you often get such mails, this will help (waste time a bit
> even with normal mails, though).

Sorry, please replace it with:

(defadvice rfc2231-parse-string (before separate-charset-token activate)
  "Separate charset token being not terminated."
  (and (string-match "charset=[^\t\n ]+\\(?:\\'\\|\\([\t\n ]*[^\t\n ;]\\)\\)"
                     (ad-get-arg 0))
       (match-beginning 1)
       (ad-set-arg 0 (concat (substring (ad-get-arg 0) 0 (match-beginning 1))
                             ";"
                             (substring (ad-get-arg 0) (match-beginning 1))))))