From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51305 Path: main.gmane.org!not-for-mail From: Matthias Andree Newsgroups: gmane.emacs.gnus.general Subject: Re: quoted-printable no-go in news? Date: Thu, 10 Apr 2003 21:06:11 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1050001638 2874 80.91.224.249 (10 Apr 2003 19:07:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2003 19:07:18 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Thu Apr 10 21:07:16 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 193hOG-0000k7-00 for ; Thu, 10 Apr 2003 21:07:16 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 193hNW-0007wi-00; Thu, 10 Apr 2003 14:06:30 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 10 Apr 2003 14:07:36 -0500 (CDT) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [64.157.176.121]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA11331 for ; Thu, 10 Apr 2003 14:07:25 -0500 (CDT) Original-Received: (qmail 10062 invoked by alias); 10 Apr 2003 19:06:15 -0000 Original-Received: (qmail 10057 invoked from network); 10 Apr 2003 19:06:15 -0000 Original-Received: from pd951fae6.dip.t-dialin.net (HELO m2a2.dyndns.org) (postfix@217.81.250.230) by gnus.org with SMTP; 10 Apr 2003 19:06:15 -0000 Original-Received: by merlin.emma.line.org (Postfix, from userid 500) id 995278191D; Thu, 10 Apr 2003 21:06:11 +0200 (CEST) Original-To: ding@gnus.org In-Reply-To: (Jesper Harder's message of "Tue, 08 Apr 2003 13:48:36 +0200") User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51305 Jesper Harder writes: > FWIW, the umlauts are displayed correctly for me. That's because I'm > using a Latin-1 locale, while you're probably using UTF-8. My locale is LANG=3Dde_DE@euro Which looks pretty much like Latin-9 (iso-8859-15). > Here's what happens: > > * Gnus detects that the message can't possibly be encoded in Latin-1 as > advertised in the header (because \200 is not a valid character in > Latin-1). This would also apply to Latin-9. > * It then uses Emacs' charset detection functions to determine the > charset. By default, Emacs doesn't know about windows-1252, so it > isn't detected correctly, and the text is decoded as something else. It must have guessed some other charset that doesn't map \200 then. How do I ask it which character set it thinks it is again? > The real way to solve it is to teach Emacs about windows-1252. That's > possible with `code-pages.el' in CVS Emacs. With this package loaded > and configured, the =A4's are displayed correctly and converted to a > proper charset when you reply. can I just steal that from CVS and stuff it into my 21.3 emacs? Or should I go for CVS? (BTW, is CVS emacs fast enough? 21.2/21.3 are _way_ slower than 21.1 was). > If you're not using code-pages.el, then it's probably better to use the > declared charset unconditionally, since the most common case of wrong > charset declaration is presumeably windows-125x vs. iso-8859-x. > > I've changed the code to skip the auto detection if a charset was > declared in the headers and `code-pages' hasn't been loaded. Thanks. --=20 Matthias Andree