[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why Chinese just shown in byte codes?
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Mon, 20 Jun 2011 10:18:49 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 11587
- References: <87wrgi3889.fsf@xxxxxxxxxxx> <b4mvcw1fhkg.fsf@xxxxxxx>
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))))))