From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63510 Path: news.gmane.org!not-for-mail From: Michael Piotrowski Newsgroups: gmane.emacs.gnus.general Subject: Re: Avoiding double encoding in subject Date: Thu, 27 Jul 2006 17:55:11 +0200 Organization: dynalabs Network Research Unit Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154047473 15914 80.91.229.2 (28 Jul 2006 00:44:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 00:44:33 +0000 (UTC) Original-X-From: ding-owner+m12038@lists.math.uh.edu Fri Jul 28 02:44:28 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6GSl-0003ft-GC for ding-account@gmane.org; Fri, 28 Jul 2006 02:44:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1G6GSQ-0007rV-00; Thu, 27 Jul 2006 19:44:02 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1G68DV-0007M6-00 for ding@lists.math.uh.edu; Thu, 27 Jul 2006 10:56:05 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1G68DP-0001GY-NL for ding@lists.math.uh.edu; Thu, 27 Jul 2006 10:56:04 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1G68DK-0004Vw-00 for ; Thu, 27 Jul 2006 17:55:54 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G68DC-0004DX-WA for ding@gnus.org; Thu, 27 Jul 2006 17:55:47 +0200 Original-Received: from aix.cs.uni-magdeburg.de ([141.44.24.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jul 2006 17:55:46 +0200 Original-Received: from mxp by aix.cs.uni-magdeburg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jul 2006 17:55:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: aix.cs.uni-magdeburg.de User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (berkeley-unix) X-Face: %OvAx]kKl`N,i?yQ+$^p9w2oy)Yg|O}a_~6wtRQ@UTZ*(jSPubbonT]m++M>YBtJqkZZa!W"y5`aI.FoKO%$JHz=ws|i?y^o2bds(+pcp>gcX]H}?-tCzL^ABzJUWYzS{"!_hFg:JD)`kxRKLsNp X-Operating-System: NetBSD Content-Language: en X-Now-Playing: alexey v - earths heart Cancel-Lock: sha1:OMELx6u6YuWyzyKqSgW59XcZNPM= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63510 Archived-At: On 2006-07-26 Reiner Steib wrote: > when replying to an article who's subject contains an unknown (or > invalid) encoding... [...] > I'm not sure how Gnus should handle this situation. Some > possibilities: [...] > (2) Gnus' decoder could replace the unknown/invalid characters with a > replacement character ("?", U+FFFD = REPLACEMENT CHARACTER, ...). > > Problem: It's probably not possible to get the number of > replacement characters right. Something like option (2) plus user interaction might be the right approach: Gnus detects a RFC 2047-encoded string in a header. If the charset is known, everything is fine and it's decoded. If the charset is unknown, ask the user, e.g.: Unknown charset "iso-8859-17" in Subject header, what now? (c, u or C-h): The user could then either type "c" and specify a charset which should be used to interpret it or type "u" to accept it as unknown; in this case I'd simply replace each octet with the replacement character since there is now way to find out the character size of an unknown encoding. Greetings -- Michael Piotrowski, M.A. Public key at