From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87336 Path: news.gmane.org!.POSTED!not-for-mail From: John Magolske Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-article-view-part-as-charset automatically? (display of \223 \224 \351 etc.) Date: Wed, 18 Jan 2017 15:18:20 -0800 Message-ID: <8737ggdkjn.fsf@b79.net> References: <8737gqdaxq.fsf@b79.net> <87h956daga.fsf@iki.fi> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484783011 10410 195.159.176.226 (18 Jan 2017 23:43:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Jan 2017 23:43:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M35556@lists.math.uh.edu Thu Jan 19 00:43:25 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTzsy-00025w-1h for ding-account@gmane.org; Thu, 19 Jan 2017 00:43:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cTzs4-0003MP-Uq; Wed, 18 Jan 2017 17:42:29 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cTzs2-0003Lj-AQ for ding@lists.math.uh.edu; Wed, 18 Jan 2017 17:42:26 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cTzs0-0001fH-F7 for ding@lists.math.uh.edu; Wed, 18 Jan 2017 17:42:26 -0600 Original-Received: from mail6.webfaction.com ([74.55.86.74] helo=smtp.webfaction.com) by quimby.gnus.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1cTzry-0007um-QA for ding@gnus.org; Thu, 19 Jan 2017 00:42:23 +0100 Original-Received: from localhost (50-0-151-112.dsl.dynamic.fusionbroadband.com [50.0.151.112]) by smtp.webfaction.com (Postfix) with ESMTP id C4201219EE16 for ; Wed, 18 Jan 2017 23:17:53 +0000 (UTC) In-Reply-To: <87h956daga.fsf@iki.fi> (Teemu Likonen's message of "Tue, 10 Jan 2017 20:41:25 +0200") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87336 Archived-At: Teemu Likonen writes: > John Magolske [2017-01-10 10:30:24-08] wrote: >> So in Gnus I select windows-1252 when doing: >> >> M-x gnus-article-view-part-as-charset >> >> ...and the message displays properly. Is there a way to have this happen >> automatically, perhaps with some sort of hook? > > I'd first try this: > > (setq gnus-default-charset 'windows-1252) So that setting by itself didn't work, but then I found the command gnus-article-decode-mime-words would cause the message to display properly. So now, with this in my gnus config file: (setq gnus-default-charset 'windows-1252) (add-hook 'gnus-summary-mode-hook (lambda () (if (equal gnus-newsgroup-name "nnimap+imap-mail:nettime") (progn (add-hook 'gnus-article-prepare-hook 'gnus-article-decode-mime-words)) (progn (remove-hook 'gnus-article-prepare-hook 'gnus-article-decode-mime-words))))) ...everything displays properly for that mailing list without affecting other lists/groups. There may be a more elegant/sensible solution (a simple setting?) -- but this works for now. Regards, John -- John Magolske http://b79.net/contact