From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74283 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Garbled display of UTF-8 encoded mails Date: Wed, 24 Nov 2010 13:39:21 +0900 Organization: Emacsen advocacy group Message-ID: References: <874ob7g5r7.fsf@turtle.gmx.de> <87vd3neord.fsf@turtle.gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290573689 6664 80.91.229.12 (24 Nov 2010 04:41:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 04:41:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22648@lists.math.uh.edu Wed Nov 24 05:41:24 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PL7Aa-0003ua-AR for ding-account@gmane.org; Wed, 24 Nov 2010 05:41:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PL79h-00053Y-7c; Tue, 23 Nov 2010 22:40:29 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PL79e-00053K-Bs for ding@lists.math.uh.edu; Tue, 23 Nov 2010 22:40:26 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PL79W-0006xx-Vq for ding@lists.math.uh.edu; Tue, 23 Nov 2010 22:40:23 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PL79W-00070w-00 for ; Wed, 24 Nov 2010 05:40:18 +0100 Original-Received: from localhost ([127.0.0.1]:56703) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1PL78v-0002py-Es for ding@gnus.org; Tue, 23 Nov 2010 22:39:41 -0600 X-Hashcash: 1:20:101124:ding@gnus.org::yNVUDGNX02zdmLpT:00003Jq7 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kG0XlvoRfVYvixhoL8p2T3SFKnA= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74283 Archived-At: Sven Joachim wrote: >> during the last weeks I encountered a problem viewing articles (mainly >> mails) with non-ASCII characters, e.g. a German Umlaut "=DC" is displayed >> as an octal digit, \334. This happens only if the message is encoded >> like this: >> >> Content-Type: text/plain; charset=3Dutf-8 >> Content-Transfer-Encoding: 8bit It seems to be due to a bug in sender's mailer. (encode-coding-string "=DC" 'utf-8) =3D> "\303\234" (encode-coding-string "=DC" 'iso-8859-1) =3D> "\334" So the Content-Type header should have been labeled with iso-8859-1, not utf-8. If you often face such mails, there's a handy workaround. Try adding something like the following to your ~/.gnus.el file: (setq gnus-summary-show-article-charset-alist '((0 . undecided) (1 . iso-8859-1) (2 . windows-1252) (3 . utf-8))) Then you can type `1 g' in the summary buffer to decode an article by decoding by iso-8859-1 forcibly no matter what the charset the Content-Type header says. Cf. (info "(gnus)Paging the Article") >> It does not happen with charset=3Diso-8859-1 or Content-Transfer-Encodin= g: >> quoted-printable (thus you cannot reproduce it with articles from >> Gmane). Any idea what might have caused this? > I bisected the problem and found out that commit bda3e8962a is the > culprit: > commit bda3e8962af0aee90144c3ae8c5360aa4c106d94 > Author: Katsumi Yamaoka > Date: Fri May 7 06:34:41 2010 +0000 I tried old Gnus of Apr. 2010 but found no difference.